Self
Category for scripts using the Self scripting language.
Categories
Scripts that are part of the basic bot bootstrap set.
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: 1014, today: 1, week: 2, month: 1
Last Connect: Today, 15:39
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: 727, today: 1, week: 2, month: 1
Last Connect: Today, 10:05
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: 959, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:26
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: 0, stars: 4.67
Language: Self
Connects: 913, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:09
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: 903, today: 0, week: 2, month: 0
Last Connect: Nov 25, 19:39
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: 895, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:51
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: 858, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:19
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: 857, today: 0, week: 0, month: 0
Last Connect: Nov 22, 6:31
The script responds to requests like "Say you like me" "Yell you like cheese". It will simply repeat the phrase, minus the "say" and replacing 1st and 2nd person.
This is a bootstrap script.
Alias: @Say It
Categories: Self, Bootstrap
Tags: self, bootstrap, utils
Created: Nov 4 2014, by: admin
Thumbs up: 2, thumbs down: 0, stars: 5.0
Language: Self
Connects: 833, today: 0, week: 2, month: 0
Last Connect: Nov 26, 7:37
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: 822, today: 0, week: 2, month: 0
Last Connect: Nov 26, 14:05
This script answers questions about the date and time.
It can answer questions like "What is the date", "What is the time", "What is the day of the week"
This is one of the bootstrap scripts.
Alias: @DateAndTime
Categories: Bootstrap, Self
Tags: self, bootstrap, utils
Created: Nov 7 2014, by: admin
Thumbs up: 3, thumbs down: 0, stars: 5.0
Language: Self
Connects: 817, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:14
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: 785, today: 0, week: 0, month: 0
Last Connect: Nov 9, 11:07
This script attempts to understand simple phrases.
It can understand simple phrases of the form "{noun} {verb} {adjective}", such as "The sky is blue" or "I am tall", but also more complex phrases such as "What is my name?", "Is my dog black?", "My dog is very smart".
It requires knowledge of the words used to know if they are a noun, verb, or adjective. Words are normally looked up in the background on Wiktionary to determine their meaning, so you may need to say the same phrase twice before the bot understands.
All understood phrases affect the bot's knowledge base, it will remember persistently if "the sky is blue", and then be able to answer "is the sky blue?".
This is the most complex of the bootstrap scripts, and is continually evolving.
Alias: @Understanding
Categories: Self, Bootstrap
Tags: self, bootstrap, understanding
Created: May 1 2015, by: admin
Thumbs up: 7, thumbs down: 0, stars: 4.57
Language: Self
Connects: 766, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:19
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: 761, today: 0, week: 1, month: 0
Last Connect: Nov 25, 19:35
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: 728, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:28
An empty shell of a Self state machine.
This can be used as a starting point for a new script, or as a bot's self programmed script.
If comprehension is enabled in your bot, it will program its last state machine script, so you should initially have an empty script last.
Alias: @Empty
Categories: Self, Bootstrap
Tags: self, bootstrap
Created: Nov 4 2014, by: admin
Thumbs up: 1, thumbs down: 0, stars: 5.0
Language: Self
Connects: 718, today: 0, week: 0, month: 0
Last Connect: Nov 14, 1:14
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: 716, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18: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: 702, today: 0, week: 2, month: 0
Last Connect: Nov 27, 23:27
Wiktionary and Freebase 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 Freebase (similar to Wikipedia). For Freebase lookups it will also import all of the available information on the object, and be able to then answer related questions.
This is one of the bootstrap scripts.
Note, Google has taken Freebase offline, so this script is only an example.
Alias: @WhatIs (Freebase - offline)
Categories: Self
Tags: self, utils, knowledge
Created: Oct 29 2014, by: admin
Thumbs up: 2, thumbs down: 0, stars: 3.5
Language: Self
Connects: 692, today: 0, week: 1, month: 0
Last Connect: Nov 29, 15:07
An example script for a pizza restaurant. This script will take a pizza order, and email it to the store.
You could deploy a bot using this script to any service such as web, mobile, Facebook, Telegram, etc.
Alias: @Pizza Bot
Categories: Examples, Self
Tags: examples, orders, self, e-commerce, pizza
Created: Jun 27 2016, by: admin
Thumbs up: 3, thumbs down: 1, stars: 4.25
Language: Self
Connects: 691, today: 0, week: 1, month: 0
Last Connect: Nov 28, 1:03
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: 683, today: 0, week: 2, month: 0
Last Connect: Nov 29, 20:53
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: 683, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:55
a Hello World script
Alias: @Hello World
Categories: Self
Created: Jan 9 2015, by: aazxcqwe
Thumbs up: 1, thumbs down: 0, stars: 4.0
Language: Self
Connects: 679, today: 0, week: 0, month: 0
Last Connect: Nov 11, 2:12
"redo" last input
Alias: @Redo
Categories: Self
Created: Jan 26 2015, by: aazxcqwe
Thumbs up: 1, thumbs down: 0, stars: 5.0
Language: Self
Connects: 676, today: 0, week: 2, month: 0
Last Connect: Nov 29, 18:51
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: 666, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:31
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: 624, today: 0, week: 0, month: 0
Last Connect: Nov 1, 23: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: 622, today: 0, week: 0, month: 0
Last Connect: Nov 13, 1:07
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: 597, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:12
This script lets the user escalate the chat session to a follow up email.
Alias: @Escalate Email
Categories: Self, Examples
Tags: self, examples, email
Created: Jun 1 2016, by: admin
Thumbs up: 1, thumbs down: 0, stars: 2.0
Language: Self
Connects: 591, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:02
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: 567, today: 0, week: 0, month: 0
Last Connect: Nov 14, 15:47
A script for letting the bot book appointments or service calls in your Google Calendar.
Alias: @Book Appointment
Categories: Examples, Self
Tags: calendar, virtual assistant, examples, customer service, google calendar, booking, self, appointments
Created: Oct 11 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 557, today: 0, week: 2, month: 0
Last Connect: Nov 25, 18:13
This script shows how you can call an IBM Watson bot or web service from IBM's Bluemix web API.
For examples on calling IBM Watson's API see, https://watson-api-explorer.mybluemix.net/
Alias: @IBM Watson Example
Categories: Self, Examples
Tags: examples, watson, json, web service, auth
Created: Mar 20 2017, by: admin
Thumbs up: 0, thumbs down: 2, stars: 2.0
Language: Self
Connects: 553, today: 0, week: 2, month: 0
Last Connect: Nov 27, 1:19
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: 537, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:20
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: 535, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:33
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: 533, today: 0, week: 0, month: 0
Last Connect: Oct 30, 1:27
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: 532, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:38
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: 529, today: 0, week: 2, month: 0
Last Connect: Nov 26, 23:30
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 script requires the game-sdk.js and games.css files.
Alias: @TicTacToe
Categories: Self, Games
Tags: games, self, machine learning
Created: Jul 26 2017, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 528, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:57
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: 511, today: 0, week: 0, month: 0
Last Connect: Nov 13, 1:08
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: 502, today: 0, week: 1, month: 0
Last Connect: Nov 25, 19:01
Proxy bot script for Silvia bot.
Alias: @Silvia
Categories: Self
Created: May 16 2017, by: bgarr33434
Thumbs up: 1, thumbs down: 0, stars: 5.0
Language: Self
Connects: 486, today: 0, week: 0, month: 0
Last Connect: Oct 30, 1:40
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: 483, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:25
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: 468, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:44
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: 465, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:13
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: 445, today: 0, week: 0, month: 0
Last Connect: Nov 15, 20:28
This is an example script that uses Self to invoke the Bot Libre API to forward a question to another bot.
Alias: @Ask Brain Bot
Categories: Self, Examples
Tags: self, examples
Created: Jun 24 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 441, today: 0, week: 1, month: 0
Last Connect: Nov 28, 0:06
This script sets data on the current conversation.
Alias: @SetData
Categories: Self
Tags: self, example, data
Created: Mar 17 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 437, today: 0, week: 0, month: 0
Last Connect: Nov 20, 4:27
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: 432, today: 0, week: 1, month: 0
Last Connect: Nov 25, 19:11
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: 432, today: 0, week: 0, month: 0
Last Connect: Nov 22, 16:58
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: 412, today: 0, week: 1, month: 0
Last Connect: Nov 25, 18:13
chat bot script
Alias: @chat bot script
Categories: Self, AIML
Tags: self
Created: Sep 25 2017, by: josource
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 398, today: 0, week: 0, month: 0
Last Connect: Nov 16, 17:43
This Self script shows you how to use custom Facebook message templates.
Facebook support several message templates that let your bot use more than text message replies.
Bot Libre automatically translates HTML messages from your bot to Facebook templates, including buttons, links, images, and videos, but for some templates you may require a deeper level of access.
Facebook allows a JSON template to be passed with a message to provide rich content.
For a list of Facebook templates see, https://developers.facebook.com/docs/messenger-platform/send-api-reference/templates
Alias: @Facebook Custom Template Script
Categories: Self
Tags: facebook, examples, self
Created: Jun 20 2017, by: admin
Thumbs up: 1, thumbs down: 0, stars: 5.0
Language: Self
Connects: 397, today: 0, week: 1, month: 0
Last Connect: Nov 26, 6:10
This script gives an example script for how to request and process the user's location in a Telegram Messenger bot.
Alias: @Telegram Location Request
Categories: Self
Tags: examples, self, geospatial, location, telegram
Created: Nov 21 2017, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 393, today: 0, week: 0, month: 0
Last Connect: Nov 20, 8:09
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: 392, today: 0, week: 1, month: 0
Last Connect: Nov 27, 1:50
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: 385, today: 0, week: 0, month: 0
Last Connect: Nov 3, 1:41
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: 372, today: 0, week: 0, month: 0
Last Connect: Nov 23, 13:34