-
Notifications
You must be signed in to change notification settings - Fork 5
Home
Noah Petherbridge edited this page Jan 6, 2017
·
11 revisions
Welcome to the RiveScript Community Wiki!
This wiki will be a place for the community to share snippets and examples of how to do things in RiveScript.
Note: if your example is programming language specific (uses a non-trivial amount of source code in a programming language that isn't RiveScript), you should contribute it as an example to the programming language's GitHub project. See the rivescript-js examples for example. This wiki should contain mostly pure RiveScript examples.
See How to Contribute for guidelines on where you should put your update on this wiki.
These are universally good tips on how to structure your chatbot's code efficiently.
- Make a Single Shared Bot Instance - Instead of writing an app that has to completely load your RiveScript bot from scratch on every request, consider using one shared global instance that can be shared across many requests over the lifetime of the application.
- New User Interview - Program your bot to ask new users a series of questions (for their name, age, gender, etc.) upon first meeting them.