Self
Category for scripts using the Self scripting language.
Categories
Scripts that are part of the basic bot bootstrap set.
This is an example Self script that sends an SMS text message when the user asks the "escalate" their service request.
Alias: @Escalate SMS
Categories: Examples, Self
Tags: examples, sms, self
Created: Jun 1 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 610, today: 1, week: 5, month: 3
Last Connect: Today, 6:08
This script lets you play Tic Tac Toe with your bot.
It uses machine learning to let the bot learn the more it plays.
This is a text/HTML version of the TicTacToe script that does not require the game-sdk.js
Alias: @TicTacToeText
Categories: Self, Games
Tags: machine learning, self, games
Created: Jul 5 2017, by: admin
Thumbs up: 1, thumbs down: 0, stars: 5.0
Language: Self
Connects: 476, today: 1, week: 4, month: 3
Last Connect: Today, 6:02
An "I Spy" colors game that you can play with your bot.
This game will actually teach your bot about colors, and it will learn new objects and colors as you play.
Alias: @I Spy
Categories: Examples, Self, Games
Tags: i spy, games, examples, self
Created: Sep 12 2016, by: admin
Thumbs up: 0, thumbs down: 1, stars: 2.0
Language: Self
Connects: 716, today: 0, week: 2, month: 2
Last Connect: Yesterday, 13:06
Answer questions about the weather using the Pannous service.
Alias: @Weather
Categories: Self, Examples
Tags: self, weather, pannous
Created: Aug 28 2015, by: admin
Thumbs up: 0, thumbs down: 1, stars: 2.0
Language: Self
Connects: 694, today: 1, week: 3, month: 2
Last Connect: Today, 6:11
This script loads the default ALICE profile into the bot.
It defines all of the required variables for the ALICE AIML scripts.
Alias: @ALICE profile
Categories: A.L.I.C.E., AIML, Self
Tags: alice, response list
Created: Mar 23 2015, by: admin
Thumbs up: 1, thumbs down: 0, stars: 5.0
Language: Response List
Connects: 632, today: 1, week: 2, month: 2
Last Connect: Today, 6:13
This is an example Self script that can be used with a bot connected to a Twilio SMS account.
You can ask the bot to send a SMS message to a list of contacts.
Alias: @Bulk SMS
Categories: Examples, Self
Tags: examples, sms, self
Created: Sep 19 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 548, today: 1, week: 3, month: 2
Last Connect: Today, 6:06
This examples shows how to lookup a postal code using the GeoNames webservice.
This same code can be used to access any web service.
Alias: @GeoNames
Categories: Self, Examples
Tags: geonames, rest, self, xml, sraix, internet, web service
Created: May 25 2016, by: admin
Thumbs up: 0, thumbs down: 1, stars: 2.0
Language: Self
Connects: 541, today: 0, week: 3, month: 2
Last Connect: Yesterday, 15:15
This script show an example of accessing stock quotes from the Quandi web service.
You can use it as is, or modify it as you wish.
Please replace the Quandi api-key with your own api-key.
Alias: @Stock Quotes
Categories: Examples, Self
Tags: stocks, xml, examples, self, quotes, web service
Created: Jun 1 2016, by: admin
Thumbs up: 1, thumbs down: 0, stars: 2.0
Language: Self
Connects: 539, today: 1, week: 2, month: 2
Last Connect: Today, 5:16
This script shows an example of scraping data from Wikiquote.
Alias: @Wikiquote Scraping
Categories: Examples, Self
Tags: html, self, wikiquote, examples
Created: Aug 13 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 508, today: 1, week: 2, month: 2
Last Connect: Today, 5:16
This script shows how you can use your bot as a "bot service" to process JSON.
Note that this is an advanced thing to do, and this should not be confused with calling a JSON web service, which you can do from any Self script. This is for when you want your bot to act as a web service, so it processing JSON not a chat message/NLP.
This is possible through the Bot Libre REST API /rest/api/command
Alias: @JSON Bot Service
Categories: Examples, Self
Tags: bot service, command, json, examples, web service
Created: Mar 28 2018, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 418, today: 1, week: 2, month: 2
Last Connect: Today, 5:13
This is an example script that searches YouTube for a video using the Google YouTube search API.
Note, you require a Google API key to call the API.
https://developers.google.com/youtube/v3/docs/search/list
Alias: @YouTube Search
Categories: Self, Examples
Tags: self, web service, google, json, examples, youtube
Created: Aug 20 2018, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 371, today: 1, week: 2, month: 2
Last Connect: Today, 6:11
This script gives an example Telegram script that forwards every message sent to the bot to another Telegram user.
Note, that user must have started a chat with the bot for it to be able to message them.
Also the user id must be used. You can get this from querying all "speaker" objects from the bot's Knowledge page in its Admin Console.
Alias: @telegramforward
Categories: Self
Tags: examples, forward, telegram, self
Created: Mar 11 2021, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 171, today: 1, week: 2, month: 2
Last Connect: Today, 5:14
This script lets you play Connect 4 with your bot.
There are 2 play option in the script, random move, and deep learning move that uses the Bot Libre analytics API.
This script requires the game-sdk.js and games.css files.
Alias: @connect4
Categories: Games, Self
Tags: games, analytics, deep learning, checkers, machine learning, self
Created: Apr 13 2021, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 156, today: 1, week: 2, month: 2
Last Connect: Today, 6:07
This Self script can be used to access the GPT-3 API from Open AI.
GTP-3 is a text generative LLM (large language model), and has been train on a large set of multi language text and and responds to many types of questions and queries.
This script requires that you enter your Open AI Playground API key.
Alias: @gpt-3
Categories: Self
Tags: gpt, open ai, text generation, llm, gpt-3, self, artificial intelligence, ai, deep learning, web service, json
Created: Jan 16 2023, by: admin
Thumbs up: 3, thumbs down: 0, stars: 5.0
Language: Self
Connects: 112, today: 1, week: 3, month: 2
Last Connect: Today, 6:12
This scripts lets you connect the bot to Spotify and play music.
Alias: @spotify
Categories: Self
Tags: self, music, web service, json, spotify
Created: Apr 15 2021, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 85, today: 1, week: 2, month: 2
Last Connect: Today, 6:01
Basic conversation loop detection script.
This is one of the bootstrap scripts. It should be first in the script order to catch all loops.
Alias: @Loop
Categories: Self, Bootstrap
Tags: self, utils, bootstrap
Created: Oct 29 2014, by: admin
Thumbs up: 3, thumbs down: 0, stars: 5.0
Language: Self
Connects: 1021, today: 1, week: 1, month: 1
Last Connect: Today, 6:08
This script can respond what the current topic is, and reply to questions on the conversation.
It responds to questions like "What is the current topic", "Tell me more", "What did I say", "What did you say".
This is a bootstrap script.
Alias: @Topic
Categories: Self, Bootstrap
Tags: self, bootstrap, utils
Created: Nov 4 2014, by: admin
Thumbs up: 3, thumbs down: 1, stars: 4.0
Language: Self
Connects: 920, today: 0, week: 1, month: 1
Last Connect: Yesterday, 4:38
Freebase location lookup script.
This script will answer "Where is ..." style of questions by looking up the object in Freebase and determining what it is contained by.
This is one of the bootstrap scripts.
Note, Google has taken Freebase offline, so this script is only an example.
Alias: @WhereIs (Freebase - offline)
Categories: Self, Examples
Tags: self, geospatial, freebase, utils
Created: Oct 29 2014, by: admin
Thumbs up: 2, thumbs down: 1, stars: 4.0
Language: Self
Connects: 912, today: 0, week: 1, month: 1
Last Connect: Yesterday, 18:53
This example script show how to repeat a word in a response n times.
Alias: @Repeat
Categories: Examples, Self
Tags: self, example, repeat
Created: Jan 5 2015, by: admin
Thumbs up: 1, thumbs down: 0, stars: 5.0
Language: Self
Connects: 904, today: 0, week: 2, month: 1
Last Connect: Yesterday, 4:39
The script will listen for the phrases "wrong" or "bad answer" and ask for a correction, and learn the new response.
Alias: @WrongAnswer
Categories: Self, Examples
Tags: self, learning, examples
Created: Jan 11 2015, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 863, today: 1, week: 1, month: 1
Last Connect: Today, 6:03
This script understands basic math, addition, subtraction, multiplication, and division, such as "what is 1 * 2 / 4 + 6 - -1", "2.2 + 5.5 =?", "one plus two".
It uses a calculator function to perform the math, not first principles like the plus script.
This is one of the bootstrap scripts.
Alias: @Math
Categories: Self, Bootstrap, Math
Tags: self, bootstrap, math
Created: Nov 4 2014, by: admin
Thumbs up: 3, thumbs down: 1, stars: 4.25
Language: Self
Connects: 828, today: 1, week: 1, month: 1
Last Connect: Today, 6:04
This is the script used by Santa Bot.
It was written on an earlier version of Self, so is probably more complex than now required now, but does give a good example of how to script responses based on context, how to associate knowledge, and how to create names.
Alias: @Santa Bot
Categories: Self
Tags: self, santa, bot
Created: Oct 17 2014, by: admin
Thumbs up: 1, thumbs down: 0, stars: 5.0
Language: Self
Connects: 791, today: 0, week: 1, month: 1
Last Connect: Yesterday, 13:56
This script can perform basic math using a state machine.
Alias: @Simple Addition
Categories: Self, Math, Examples
Tags: self, math
Created: Nov 7 2014, by: admin
Thumbs up: 1, thumbs down: 0, stars: 5.0
Language: Self
Connects: 771, today: 0, week: 2, month: 1
Last Connect: Yesterday, 6:26
Wiktionary and Wikidata lookup script.
This script will answer "What is ...", "Who is ...", "define ...", "Google ..." style of questions. It will look up word definitions in Wiktionary, or look up keywords in Wikidata. For Wikidata lookups it will also import all of the available information on the object, and be able to then answer related questions.
Alias: @WhatIs (Wikidata)
Categories: Self, Bootstrap
Tags: knowledge, self, utils, bootstrap
Created: Jun 23 2015, by: admin
Thumbs up: 4, thumbs down: 0, stars: 5.0
Language: Self
Connects: 735, today: 1, week: 1, month: 1
Last Connect: Today, 5:16
A script that can perform addition using no computer math functions.
It performs addition the same way a human (without a calculator) does, using its knowledge of integers and counting.
The goal in this script was to use it to teach a bot addition, and let it learn higher level mathematics from first principles.
Alias: @Plus
Categories: Self, Math, Examples
Tags: self, math
Created: Nov 4 2014, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 734, today: 0, week: 1, month: 1
Last Connect: Yesterday, 6:23
Wikidata location lookup script.
This script will answer "Where is ..." style of questions by looking up the object in Wikidata and determining what it is contained by.
This is one of the bootstrap scripts.
Alias: @WhereIs (Wikidata)
Categories: Examples, Self, Bootstrap
Tags: knowledge, self, bootstrap, utils, geospatial, wikidata
Created: Jun 23 2015, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 721, today: 1, week: 1, month: 1
Last Connect: Today, 6:08
This script demonstrates some of Bot Libre's support for vision and image processing.
"load image http://urltoimage imagename" can be used to load an image.
"match image http://urltoimage" can be used to match an image.
"init colors" to load red/green/blue colors.
"what color is http://urltoimage" to guess images primary color.
Alias: @Vision
Categories: Self, Bootstrap, Examples
Tags: self, image processing, vision, examples, bootstrap
Created: Jun 3 2016, by: admin
Thumbs up: 3, thumbs down: 1, stars: 4.25
Language: Self
Connects: 699, today: 0, week: 1, month: 1
Last Connect: Yesterday, 4:12
A script that can answer questions about books, films, and music using Wikidata.
Alias: @Books, Films, and Music
Categories: Self, Examples
Tags: self, examples, knowledge
Created: Sep 4 2015, by: admin
Thumbs up: 1, thumbs down: 0, stars: 5.0
Language: Self
Connects: 674, today: 0, week: 1, month: 1
Last Connect: Yesterday, 13:08
A script the recites the Heart Sutra line by line, in order.
Alias: @Heart Sutra
Categories: Self, Examples
Tags: self, examples
Created: Aug 3 2015, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 629, today: 0, week: 1, month: 1
Last Connect: Yesterday, 6:22
This script will attempt to find the subject and predicate of a sentence.
Alias: @SimpleLanguage
Categories: Examples, Self
Tags: self, examples, language
Created: Jan 23 2015, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 573, today: 0, week: 1, month: 1
Last Connect: Yesterday, 6:22
An example Self script that searches Wikipedia.
Alias: @Wikipedia Search
Categories: Self, Examples
Tags: wikipedia, xml, search, examples, self, xpath, web service
Created: Dec 9 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 550, today: 0, week: 3, month: 1
Last Connect: Yesterday, 3:50
This script will load the text of the Heart Sutra into the bot's memory.
Alias: @Heart Sutra - load
Categories: Self, Examples
Tags: self, examples
Created: Aug 3 2015, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 538, today: 0, week: 1, month: 1
Last Connect: Yesterday, 6:22
A script that gives a Turing test.
Alias: @Turing Test
Categories: Examples, Self
Tags: self, examples
Created: Oct 23 2015, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 516, today: 0, week: 1, month: 1
Last Connect: Yesterday, 6:19
An example script for a n HR interview bot. This script will ask a potential new employee a set of interview questions, and email the results to your HR email.
You could deploy a bot using this script to any service such as web, mobile, Facebook, Telegram, etc.
Alias: @Interview Bot
Categories: Examples, Self
Tags: hr, career, interview, self, examples
Created: Mar 24 2017, by: admin
Thumbs up: 1, thumbs down: 0, stars: 5.0
Language: Self
Connects: 489, today: 1, week: 1, month: 1
Last Connect: Today, 6:06
This script allows requests to be forwarded to Wolfram Alpha for evaluation, and returns the result.
Alias: @Wolfram Alpha Example
Categories: Self
Tags: examples, wolframalpha, self, web service, xml
Created: Aug 29 2017, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 476, today: 0, week: 2, month: 1
Last Connect: Yesterday, 16:21
A redirect script that redirect some kind phrases to simpler forms.
Alias: @Reduction
Categories: Bootstrap, Self
Tags: self, bootstrap, redirect
Created: Sep 14 2015, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 448, today: 1, week: 1, month: 1
Last Connect: Today, 5:39
This script gives an example script for how to request and process the user's location in a Facebook Messenger bot.
Alias: @Facebook Location Request
Categories: Self
Tags: facebook, examples, self, geospatial, location
Created: Oct 19 2017, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 442, today: 0, week: 2, month: 1
Last Connect: Yesterday, 3:50
This script gives an example of a mailing list bot that sends email notifications of new blog posts using a timer function.
Alias: @Mailing List
Categories: Self, Examples
Tags: timer, self, examples, email
Created: May 12 2017, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 436, today: 0, week: 1, month: 1
Last Connect: Yesterday, 1:27
This script gives a simple example of using objects in Self to define and use information.
Alias: @Category Identification
Categories: Examples, Self
Tags: examples, self
Created: May 12 2017, by: admin
Thumbs up: 0, thumbs down: 1, stars: 2.0
Language: Self
Connects: 395, today: 0, week: 1, month: 1
Last Connect: Yesterday, 16:06
This script gives an example Telegram script to let a bot administer a Telegram group.
Bots can welcome new users, provide information, and delete offensive messages and spam.
Alias: @Telegram Group Administrator
Categories: Self
Tags: self, groups, examples, telegram, spam
Created: Jun 21 2017, by: admin
Thumbs up: 0, thumbs down: 1, stars: 2.0
Language: Self
Connects: 387, today: 0, week: 1, month: 1
Last Connect: Yesterday, 20:38
This example script show how to count the words in a sentence.
Alias: @Count Words
Categories: Self, Examples
Tags: self, example
Created: Jan 11 2017, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 374, today: 0, week: 1, month: 1
Last Connect: Yesterday, 16:11
This script can perform basic math using patterns.
Alias: @Very Simple Addition
Categories: Examples, Math, Self
Tags: math, self
Created: Dec 21 2017, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 367, today: 0, week: 2, month: 1
Last Connect: Yesterday, 20:38
This script gives a different response to the user's question based on the sentiment of their phrase.
Alias: @Sentiment Response
Categories: Examples, Self
Tags: examples, sentiment, self
Created: Aug 24 2018, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 358, today: 0, week: 1, month: 1
Last Connect: Yesterday, 5:35
This script answers questions about dates and places of birth/death of famous people using Wikidata.
Alias: @Where/When Born & Death
Categories: Examples, Self
Created: Nov 21 2017, by: poto74
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language:
Connects: 357, today: 0, week: 1, month: 1
Last Connect: Yesterday, 16:00
My_chat
Alias: @My_chat
Categories: Self
Created: Feb 5 2017, by: silcesar
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 309, today: 0, week: 1, month: 1
Last Connect: Yesterday, 21:24
Alias: @MyGreetings
Categories: Self
Created: Jan 9 2018, by: yashpatelyk
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language:
Connects: 293, today: 0, week: 1, month: 1
Last Connect: Yesterday, 16:09
This script lets you play Checkers with your bot.
There are 2 play option in the script, random move, and deep learning move that uses the Bot Libre analytics API.
This script requires the game-sdk.js and games.css files.
Alias: @checkers-admin
Categories: Self, Games
Tags: checkers, self, games, machine learning, deep learning, analytics
Created: Nov 13 2019, by: admin
Thumbs up: 1, thumbs down: 0, stars: 5.0
Language: Self
Connects: 278, today: 0, week: 1, month: 1
Last Connect: Yesterday, 23:05
This script lets you play Connect 4 with your bot.
This is the text version of the script (board is printed as text).
There are 2 play option in the script, random move, and deep learning move that uses the Bot Libre analytics API.
This script requires the game-sdk.js and games.css files.
Alias: @connect4text
Categories: Self, Games
Tags: analytics, deep learning, games, machine learning, self, checkers
Created: Apr 14 2021, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 238, today: 0, week: 1, month: 1
Last Connect: Yesterday, 5:31
This script shows how to create a paragraph object to return responses that are greater than 1k of text.
Alias: @paragraphs
Categories: Self, Examples
Tags: paragraphs, examples, self, exodus
Created: Aug 14 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 202, today: 0, week: 2, month: 1
Last Connect: Yesterday, 3:50
This script uses the NHL.com web API to let the bot give stats and information on NHL teams and players.
Alias: @nhlhockeystats
Categories: Self
Tags: web service, hockey, json, self, sports, nhl
Created: Apr 19 2021, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 156, today: 0, week: 2, month: 1
Last Connect: Yesterday, 1:55
A script that can answer questions about famous people using Wikidata.
Alias: @aboutfamouspeoplescript
Categories: Examples, Self
Tags: examples, knowledge, self
Created: Jun 9 2021, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 154, today: 0, week: 3, month: 1
Last Connect: Yesterday, 23:06
This Self script is used by the Car Rental bot response list.
It initializes and lists the car data.
Alias: @carrentalscript
Categories: Business, Examples, Self, Response Lists
Tags: e-commerce, business, self, examples
Created: Apr 20 2021, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 145, today: 0, week: 2, month: 1
Last Connect: Yesterday, 4:12
Modifié à partir de https://www.botlibre.com/script?id=18207180
Alias: @TicTacToe_text_fr
Categories: Self
Created: May 4 2021, by: epn
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 103, today: 0, week: 1, month: 1
Last Connect: Yesterday, 16:16
This Self script can be used to access the ChatGPT, (GPT-3.5 or GPT-4) API from Open AI.
GTP-3.5 and GPT-4 are chat optimized text generative LLM (large language model), and has been train on a large set of multi language text and and responds to many types of questions and queries.
This script requires that you enter your Open AI Playground API key.
Alias: @chatgpt
Categories: Self
Tags: gpt, deep learning, self, json, web service, open ai, artificial intelligence, llm, ai, text generation, chatgpt
Created: Apr 3 2023, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 99, today: 0, week: 1, month: 1
Last Connect: Yesterday, 1:30
A script for understand names and greeting people.
This script understands phrases like "My name is Joe", "I am Joe", "Who are you?".
This is a bootstrap script.
Alias: @My Name Is
Categories: Self, Bootstrap
Tags: self, bootstrap, names
Created: Nov 4 2014, by: admin
Thumbs up: 6, thumbs down: 0, stars: 5.0
Language: Self
Connects: 967, today: 0, week: 0, month: 0
Last Connect: Jan 25, 11:25
This script allows synonyms, translations, and alternative spellings to be given for a word.
It understands phrases like "lik means like", "lol means laugh", "nom means name".
This is one of the bootstrap scripts.
Alias: @DefineWord
Categories: Bootstrap, Self
Tags: bootstrap, self, utils
Created: Nov 7 2014, by: admin
Thumbs up: 1, thumbs down: 0, stars: 5.0
Language: Self
Connects: 862, today: 0, week: 0, month: 0
Last Connect: Jan 25, 11:23