Browse : Self

Self

Scripts written in the Self scripting language. Self is the scripting language used in Paphus Live Chat chat bots.

Categories

Bootstrap
Bootstrap
Scripts that are part of the basic bot bootstrap set.



37 results.

Repeat
Repeat
This example script show how to repeat a word in a response n times.
Categories: Examples, Self
Tags: example, repeat, self
Workspace: Bot Libre for Business
Created: Oct 15 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 121, today: 0, week: 2, month: 4
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:14
Math
Math
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.
Categories: Bootstrap, Math, Self
Tags: self, math, bootstrap
Workspace: Bot Libre for Business
Created: Oct 15 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 120, today: 0, week: 3, month: 4
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:15
WhatIs (Wikidata)
WhatIs (Wikidata)
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.
Categories: Self, Bootstrap
Tags: bootstrap, self, utils, knowledge
Workspace: Bot Libre for Business
Created: Oct 15 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 115, today: 0, week: 2, month: 4
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:16
Understanding
Understanding
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.
Categories: Self, Bootstrap
Tags: understanding, bootstrap, self
Workspace: Bot Libre for Business
Created: Oct 15 2016
Creator: admin
Thumbs up: 1, thumbs down: 0, stars: 5.0
Language: Self
Connects: 113, today: 0, week: 2, month: 4
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:16
Escalate SMS
Escalate SMS
This is an example Self script that sends an SMS text message when the user asks the "escalate" their service request.
Categories: Examples, Self
Tags: self, examples, sms
Workspace: Bot Libre for Business
Created: Oct 7 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 133, today: 0, week: 2, month: 3
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:20
Wikiquote Scraping
Wikiquote Scraping
This script shows an example of scraping data from Wikiquote.
Categories: Self, Examples
Tags: self, examples, html, wikiquote
Workspace: Bot Libre for Business
Created: Oct 15 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 118, today: 0, week: 2, month: 3
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:22
Loop
Loop
Basic conversation loop detection script.
This is one of the bootstrap scripts. It should be first in the script order to catch all loops.
Categories: Bootstrap, Self
Tags: bootstrap, self, utils
Workspace: Bot Libre for Business
Created: Oct 15 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 113, today: 0, week: 2, month: 3
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:23
Stock Quotes
Stock Quotes
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.
Categories: Self, Examples
Tags: self, stocks, quotes, xml, examples, web service
Workspace: Bot Libre for Business
Created: Oct 15 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 109, today: 0, week: 2, month: 3
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:24
Count Words
Count Words
This example script show how to count the words in a sentence.
Categories: Examples, Self
Tags: self, example
Workspace: Bot Libre for Business
Created: Feb 19
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 13, today: 0, week: 1, month: 3
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 15:12
Wikipedia Search
Wikipedia Search
An example Self script that searches Wikipedia.
Categories: Examples, Self
Tags: self, xml, examples, web service, wikipedia, search, xpath
Workspace: Bot Libre for Business
Created: Feb 19
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 13, today: 0, week: 1, month: 3
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 15:12
My Name Is
My Name Is
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.
Categories: Self
Tags: bootstrap, self, names
Workspace: Bot Libre for Business
Created: Jan 19 2015
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 520, today: 0, week: 1, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:30
Weather
Weather
Answer questions about the weather using the Pannous service.
Categories: Self
Tags: self, weather, pannous
Workspace: Bot Libre for Business
Created: Mar 11 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 161, today: 0, week: 1, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:31
Facebook Custom Template Script
Facebook Custom Template Script
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
Categories: Self
Tags: self, examples, facebook
Workspace: Bot Libre for Business
Created: Jul 19 2017
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 143, today: 0, week: 2, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:31
Books, Films, and Music
Books, Films, and Music
A script that can answer questions about books, films, and music using Wikidata.
Categories: Self, Examples
Tags: self, knowledge, examples
Workspace: Bot Libre for Business
Created: Oct 7 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 136, today: 0, week: 2, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:32
Book Appointment
Book Appointment
A script for letting the bot book appointments or service calls in your Google Calendar.
Categories: Examples, Self
Tags: customer service, self, examples, virtual assistant, google calendar, booking, appointments, calendar
Workspace: Bot Libre for Business
Created: Nov 2 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 132, today: 0, week: 1, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:33
Escalate Email
Escalate Email
This script lets the user escalate the chat session to a follow up email.
Categories: Examples, Self
Tags: self, email, examples
Workspace: Bot Libre for Business
Created: Oct 7 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 128, today: 0, week: 2, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:34
Pizza Bot
Pizza Bot
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.
Categories: Self, Examples
Tags: self, examples, orders, pizza, e-commerce
Workspace: Bot Libre for Business
Created: Oct 13 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 127, today: 0, week: 2, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:35
Bulk SMS
Bulk SMS
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.
Categories: Examples, Self
Tags: self, sms, examples
Workspace: Bot Libre for Business
Created: Oct 7 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 123, today: 1, week: 2, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Today, 18:54
Say It
Say It
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.
Categories: Self, Bootstrap
Tags: bootstrap, self, utils
Workspace: Bot Libre for Business
Created: Oct 15 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 118, today: 0, week: 1, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:36
Wrong Answer
Wrong Answer
The script will listen for the phrases "wrong" or "bad answer" and ask for a correction, and learn the new response.
Categories: Self
Workspace: Bot Libre for Business
Created: Aug 25 2016
Creator: mike2016
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 117, today: 1, week: 2, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Today, 21:12
Vision
Vision
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.

Categories: Self
Workspace: Bot Libre for Business
Created: Aug 25 2016
Creator: mike2016
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 114, today: 0, week: 2, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:37
WhereIs (Wikidata)
WhereIs (Wikidata)
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.
Categories: Self, Bootstrap, Examples
Tags: bootstrap, self, utils, wikidata, geospatial, knowledge
Workspace: Bot Libre for Business
Created: Oct 15 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 113, today: 0, week: 1, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:37
I Spy
I Spy
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.
Categories: Self, Examples
Tags: self, i spy, games, examples
Workspace: Bot Libre for Business
Created: Oct 7 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 110, today: 0, week: 2, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:39
DateAndTime
DateAndTime
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.
Categories: Bootstrap, Self
Tags: bootstrap, self, utils
Workspace: Bot Libre for Business
Created: Oct 7 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 108, today: 0, week: 2, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:41
Telegram Group Administrator
Telegram Group Administrator
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.
Categories: Self
Tags: self, examples, groups, spam, telegram
Workspace: Bot Libre for Business
Created: Jul 19 2017
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 98, today: 0, week: 1, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:43
GeoNames
GeoNames
This examples shows how to lookup a postal code using the GeoNames webservice. This same code can be used to access any web service.
Categories: Examples, Self
Tags: self, geonames, rest, internet, sraix, xml
Workspace: Bot Libre for Business
Created: Oct 7 2016
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 92, today: 1, week: 2, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Today, 12:01
Interview Bot
Interview Bot
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.
Categories: Self, Examples
Tags: self, examples, hr, interview, career
Workspace: Bot Libre for Business
Created: Mar 24 2017
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 85, today: 0, week: 1, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:45
IBM Watson Example
IBM Watson Example
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/
Categories: Examples, Self
Tags: json, examples, web service, watson
Workspace: Bot Libre for Business
Created: Feb 20 2018
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 59, today: 0, week: 1, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 18:10
Sentiment Response
Sentiment Response
This script gives a different response to the user's question based on the sentiment of their phrase.
Categories: Examples, Self
Tags: self, examples, sentiment
Workspace: Bot Libre for Business
Created: Feb 8
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 16, today: 0, week: 1, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 18:11
Facebook Location Request
Facebook Location Request
This script gives an example script for how to request and process the user's location in a Facebook Messenger bot.
Categories: Self
Tags: self, facebook, geospatial, location, examples
Workspace: Bot Libre for Business
Created: Feb 19
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 15, today: 0, week: 1, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 18:20
JSON Bot Service
JSON Bot Service
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
Categories: Examples, Self
Tags: json, examples, web service, bot service, command
Workspace: Bot Libre for Business
Created: Feb 19
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 15, today: 0, week: 1, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 18:12
SetData
SetData
This script sets data on the current conversation.
Categories: Self
Tags: data, example, self
Workspace: Bot Libre for Business
Created: Feb 19
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 15, today: 0, week: 1, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 18:21
Telegram Location Request
Telegram Location Request
This script gives an example script for how to request and process the user's location in a Telegram Messenger bot.
Categories: Self
Tags: self, location, examples, telegram, geospatial
Workspace: Bot Libre for Business
Created: Feb 19
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 15, today: 0, week: 1, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 18:21
YouTube Search
YouTube Search
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
Categories: Examples, Self
Tags: self, json, examples, web service, google, youtube
Workspace: Bot Libre for Business
Created: Feb 19
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 14, today: 0, week: 1, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 18:13
Mailing List
Mailing List
This script gives an example of a mailing list bot that sends email notifications of new blog posts using a timer function.
Categories: Examples, Self
Tags: self, email, examples, timer
Workspace: Bot Libre for Business
Created: Feb 19
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 13, today: 0, week: 1, month: 2
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 18:14
Calculator
Calculator
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.
Categories: Self
Tags: self, bootstrap, math
Workspace: Bot Libre for Business
Created: Jan 19 2015
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 585, today: 0, week: 1, month: 1
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 18:21
Topic
Topic
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.
Categories: Self
Tags: bootstrap, self, utils
Workspace: Bot Libre for Business
Created: Jan 19 2015
Creator: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Self
Connects: 513, today: 0, week: 1, month: 1
API Connects: 0, today: 0, week: 0, month: 0
Last Connect: Yesterday, 14:46