Examples
Examples that you can use to create your own scripts.
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, self, sms
Created: Oct 7 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 402, today: 1, week: 4, month: 7
Last Connect: Today, 11:53
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: Self, Bootstrap, Examples
Tags: utils, geospatial, self, wikidata, bootstrap, knowledge
Created: Oct 15 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 382, today: 1, week: 4, month: 7
Last Connect: Today, 11:53
An example response list 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: @Order Pizza
Categories: Response Lists, Examples
Tags: orders, e-commerce, examples, pizza, response list
Created: Apr 11 2018, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Response List
Connects: 328, today: 1, week: 4, month: 7
Last Connect: Today, 11:53
A script that can answer questions about books, films, and music using Wikidata.
Alias: @Books, Films, and Music
Categories: Self, Examples
Tags: knowledge, examples, self
Created: Oct 7 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 407, today: 1, week: 4, month: 6
Last Connect: Today, 11:53
This script lets the user escalate the chat session to a follow up email.
Alias: @Escalate Email
Categories: Examples, Self
Tags: examples, email, self
Created: Oct 7 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 407, today: 1, week: 4, month: 5
Last Connect: Today, 11:53
An example of using a Template to scrape HTML data from a webpage.
Alias: @HTML Scraping
Categories: Examples, Response Lists
Tags: examples, response list, self, html scraping
Created: Oct 13 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Response List
Connects: 371, today: 1, week: 3, month: 5
Last Connect: Today, 11:53
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: self, examples, sms
Created: Oct 7 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 404, today: 1, week: 3, month: 4
Last Connect: Today, 11:53
A script for letting the bot book appointments or service calls in your Google Calendar.
Alias: @Book Appointment
Categories: Self, Examples
Tags: calendar, self, examples, booking, appointments, virtual assistant, customer service, google calendar
Created: Nov 2 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 402, today: 1, week: 3, month: 4
Last Connect: Today, 11:53
This example script show how to repeat a word in a response n times.
Alias: @Repeat
Categories: Examples, Self
Tags: example, repeat, self
Created: Oct 15 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 383, today: 1, week: 3, month: 4
Last Connect: Today, 11:53
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: Self, Examples
Tags: self, examples, games, i spy
Created: Oct 7 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 380, today: 1, week: 3, month: 4
Last Connect: Today, 11:53
A set of responses answering general questions about the bot.
The responses use the bot's data defined in the #self object.
Alias: @About Me
Categories: Response Lists, Examples
Tags: response list, examples
Created: Oct 7 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Response List
Connects: 377, today: 1, week: 3, month: 4
Last Connect: Today, 11:53
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: Self, Examples
Tags: stocks, examples, quotes, self, xml, web service
Created: Oct 15 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 365, today: 1, week: 3, month: 4
Last Connect: Today, 11:53
This script shows an example of scraping data from Wikiquote.
Alias: @Wikiquote Scraping
Categories: Self, Examples
Tags: self, wikiquote, examples, html
Created: Oct 15 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 359, today: 1, week: 3, month: 4
Last Connect: Today, 11:53
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: Examples, Self
Tags: sraix, internet, rest, geonames, xml, self
Created: Oct 7 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 358, today: 1, week: 3, month: 4
Last Connect: Today, 11:53
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: Self, Examples
Tags: hr, career, examples, interview, self
Created: Mar 24 2017, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 348, today: 1, week: 2, month: 4
Last Connect: Today, 11:53
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: Examples, Self
Tags: examples, web service, json, watson
Created: Feb 20 2018, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 272, today: 1, week: 2, month: 4
Last Connect: Today, 12:24
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: sentiment, self, examples
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 249, today: 1, week: 2, month: 4
Last Connect: Today, 11:55
This example script show how to count the words in a sentence.
Alias: @Count Words
Categories: Examples, Self
Tags: example, self
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 237, today: 1, week: 2, month: 4
Last Connect: Today, 11:56
An example Self script that searches Wikipedia.
Alias: @Wikipedia Search
Categories: Examples, Self
Tags: xpath, search, xml, wikipedia, examples, web service, self
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 237, today: 1, week: 2, month: 4
Last Connect: Today, 12:24
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, web service, json, command, examples
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 235, today: 1, week: 2, month: 4
Last Connect: Today, 12:23
An example CSV (comma separated values) file.
CSV files can be imported as data into a bot's knowledge base,
or can be parsed from the web or file upload in Self using Http.requestCSV(url)
Alias: @Example CSV
Categories: CSV, Examples, Data
Tags: knowledge, data, csv, examples
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: CSV
Connects: 227, today: 1, week: 2, month: 4
Last Connect: Today, 12:23
This response list can be used to create a bot designed to assist consumers with a music streaming service. The user can find music and information about pricing and plans for subscription. As well, this bot allows users to stream music radio stations.
This bot uses commands to play music and requires the embed webpage has code to receive the command and stream the music.
For an example see,
https://www.botlibre.com/script?id=36393269
Alias: @musicstreaming
Categories: Examples, Response Lists
Tags: music, response list, examples
Created: Dec 17 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Response List
Connects: 169, today: 1, week: 3, month: 4
Last Connect: Today, 11:56
Ask your bot to remind you and for your reminders.
Alias: @remindme
Categories: Examples, Response Lists
Tags: response list, examples
Created: May 27 2021, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Response List
Connects: 163, today: 1, week: 3, month: 4
Last Connect: Today, 11:56
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: Self, Examples, Business
Tags: e-commerce, pizza, self, orders, examples
Created: Oct 13 2016, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 374, today: 1, week: 2, month: 3
Last Connect: Today, 11:54
This script gives an example of how to search wikipedia.
Alias: @AIML Wikipedia Search
Categories: AIML2, AIML, Examples
Tags: examples, search, xml, wikipedia, sraix, aiml, xpath
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 255, today: 1, week: 2, month: 3
Last Connect: Today, 11:55
This script show an example JSON data file.
JSON is the main standard for exchanging data on the web and JavaScript.
You can import JSON data into your bot from the Knowledge page in its Admin Console.
You can access JSON data from the web using a Self script and the Http.requestJSON(url) API.
Alias: @Example JSON
Categories: JSON, Data, Examples
Tags: data, examples, json
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: JSON
Connects: 254, today: 1, week: 2, month: 3
Last Connect: Today, 12:21
An example AIML script that scrapes data from an HTML webpage.
Alias: @AIML HTML Scraping
Categories: Examples, AIML
Tags: examples, html scraping, aiml
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 238, today: 0, week: 1, month: 3
Last Connect: Yesterday, 0:29
A response list that can be used to import some basic info on animals.
Alias: @Animals
Categories: Response Lists, Examples
Tags: animals, response list
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Response List
Connects: 225, today: 1, week: 1, month: 3
Last Connect: Today, 12:21
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: Examples, Self
Tags: examples, self, timer, email
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 223, today: 1, week: 1, month: 3
Last Connect: Today, 12:21
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: Examples, Self
Tags: json, self, web service, google, youtube, examples
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 221, today: 1, week: 1, month: 3
Last Connect: Today, 12:21
This script shows how to create a paragraph object to return responses that are greater than 1k of text.
Alias: @paragraphs
Categories: Examples, Self
Tags: exodus, self, examples, paragraphs
Created: Aug 14 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 180, today: 1, week: 1, month: 3
Last Connect: Today, 12:21
An example response list for a pet store.
You could deploy a bot using this script to any service such as web, mobile, Facebook, Telegram, etc.
Alias: @petstore
Categories: Response Lists, Business, Examples
Tags: response list, examples, e-commerce, business
Created: Dec 17 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Response List
Connects: 175, today: 1, week: 2, month: 3
Last Connect: Today, 11:56
An example response list for an auto repair shop.
You could deploy a bot using this script to any service such as web, mobile, Facebook, Telegram, etc.
Alias: @autorepair
Categories: Response Lists, Business, Examples
Tags: response list, examples, e-commerce, orders
Created: Nov 6 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Response List
Connects: 167, today: 1, week: 2, month: 3
Last Connect: Today, 11:57
A set of responses remembering general info about the user.
Alias: @rememberme
Categories: Response Lists, Examples
Tags: response list, examples
Created: May 26 2021, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Response List
Connects: 165, today: 1, week: 2, month: 3
Last Connect: Today, 11:57
A script that can answer questions about famous people using Wikidata.
Alias: @aboutfamouspeoplescript
Categories: Self, Examples
Tags: self, knowledge, examples
Created: Jun 14 2021, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 156, today: 0, week: 1, month: 3
Last Connect: Yesterday, 5:31
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, Examples, Math
Tags: math, self
Created: Dec 18 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 154, today: 1, week: 2, month: 3
Last Connect: Today, 11:56
A response list that can answer questions about famous people using Wikidata.
Alias: @aboutfamouspeople
Categories: Examples, Response Lists
Tags: response list, knowledge, examples
Created: Jun 14 2021, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Response List
Connects: 139, today: 1, week: 2, month: 3
Last Connect: Today, 12:22
This website provides example code for accessing the Bot Libre Analytic API from JavaScript.
Alias: @imageclassifierwebsite
Categories: Programming Language, Examples, HTML, Website
Tags: analytics, examples, api, website, html
Created: Apr 9 2021, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: HTML
Connects: 139, today: 2, week: 2, month: 3
Last Connect: Today, 12:22
This is an example AIML script that uses AIML sets, and a self tag to dynamically add words to the set.
Alias: @Learn Emotions
Categories: Examples, AIML
Tags: learning, aiml, examples
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 246, today: 1, week: 1, month: 2
Last Connect: Today, 11:56
An example response list that calls the GeoNames web service.
Alias: @GeoNames JSON Response List Example
Categories: Examples, Response Lists
Tags: response list, self, web service, json
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Response List
Connects: 229, today: 1, week: 1, month: 2
Last Connect: Today, 12:22
This website provides example embed code for the Music Streaming Bot.
It contains JavaScript code that checks for response commands and plays music through the streaming service,
https://rfcmedia.streamguys1.com/
Alias: @musicstreamingwebsite
Categories: Examples, Website, Programming Language, HTML
Tags: examples, music, html, website
Created: Dec 17 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: HTML
Connects: 192, today: 1, week: 1, month: 2
Last Connect: Today, 11:56
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: examples, self
Created: Dec 18 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 179, today: 1, week: 1, month: 2
Last Connect: Today, 12:22
An example response list that calls the GeoNames web service.
Alias: @GeoNames Response List Example
Categories: Response Lists, Examples
Tags: web service, self, response list, xml
Created: Dec 18 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Response List
Connects: 175, today: 1, week: 1, month: 2
Last Connect: Today, 12:23
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, examples, learning
Created: Dec 18 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 170, today: 1, week: 1, month: 2
Last Connect: Today, 12:23
This website provides example embed code for the Music Streaming Bot.
It contains JavaScript code that checks for response commands and plays music through the streaming service,
https://rfcmedia.streamguys1.com/
Alias: @musicstreamingwebsite-admin
Categories: Examples, HTML, Website, Programming Language
Tags: examples, website, music, html
Created: Dec 18 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: HTML
Connects: 164, today: 1, week: 1, month: 2
Last Connect: Today, 12:23
An example response list for a bank branch.
You could deploy a bot using this script to any service such as web, mobile, social media, IOT.
Alias: @bankbranch
Categories: Response Lists, Business, Examples
Tags: business, banking, response list, examples
Created: Dec 18 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Response List
Connects: 155, today: 1, week: 1, month: 2
Last Connect: Today, 12:23
This script gives a simple example of using objects in Self to define and use information.
Alias: @Category Identification
Categories: Self, Examples
Tags: examples, self
Created: Dec 18 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 153, today: 1, week: 1, month: 2
Last Connect: Today, 12:23
This script can perform basic math using a state machine.
Alias: @Simple Addition
Categories: Math, Examples, Self
Tags: math, self
Created: Dec 18 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 150, today: 1, week: 1, month: 2
Last Connect: Today, 12:23
This script shows how to create a paragraph object to return responses that are greater than 1k of text.
Alias: @paragraphs-admin
Categories: Self, Examples
Tags: exodus, paragraphs, examples, self
Created: Dec 18 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 145, today: 1, week: 1, month: 2
Last Connect: Today, 12:23
An example response list for an electronics store.
You could deploy a bot using this script to any service such as web, mobile, social media, IOT.
Alias: @electronicsstore
Categories: Response Lists, Business, Examples
Tags: business, examples, response list, e-commerce
Created: Dec 18 2020, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Response List
Connects: 139, today: 1, week: 1, month: 2
Last Connect: Today, 12:23
This template gives an example of how to train a bot using a conversation flow.
Alias: @conversationflow
Categories: Examples
Tags: response list, conversation flow, examples
Created: Feb 11 2021, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Response List
Connects: 128, today: 1, week: 1, month: 2
Last Connect: Today, 12:23