Welcome to the Based Crash Course! This guide introduces you to Based, a powerful, domain-specific programming language designed to build platform agnostic conversational agents. Deploy conversational workflows on chat, voice, email, SMS, and more with ease, enabling seamless data exchange and a unified user experience across platforms.
Based is a high-level AI instruction language crafted to design dynamic conversational agents that operate flawlessly across multiple communication channels. It provides developers with an elegant, high-level syntax to build interactive workflows quickly and reliably.
Key features of Based include:
talk
, loop
, until
, and ask
to manage conversation flow and state effortlessly.Based scripts use a trio of keywords to build interactive conversations:
talk
: Sends a message or prompt to the user and waits for a response (or specify False as the second argument to wait for the user to send a message first).loop
: Begins a conversational block that allows for repeated prompting.until
: Specifies the condition under which the loop should end.In practice, the talk
keyword is not used in isolation. It is usually enclosed in a loop
/until
structure. This pattern keeps the conversation repeating until valid input is obtained.
Example Usage:
ask
MethodThe ask
method is used to extract structured data from a response. By providing an example object, you can ensure that the output is formatted predictably for further processing.
Example:
Below is a complete example that combines talk
, loop
, until
, and ask
to build a seamless interactive conversation:
loop
, talk
, until
, and ask
empower you to design robust, interactive workflows.Armed with these constructs, you can build dynamic, platform-agnostic conversational agents using Based. This guide has provided enhanced examples that showcase how to structure interactive conversations effectively. Happy coding!
Welcome to the Based Crash Course! This guide introduces you to Based, a powerful, domain-specific programming language designed to build platform agnostic conversational agents. Deploy conversational workflows on chat, voice, email, SMS, and more with ease, enabling seamless data exchange and a unified user experience across platforms.
Based is a high-level AI instruction language crafted to design dynamic conversational agents that operate flawlessly across multiple communication channels. It provides developers with an elegant, high-level syntax to build interactive workflows quickly and reliably.
Key features of Based include:
talk
, loop
, until
, and ask
to manage conversation flow and state effortlessly.Based scripts use a trio of keywords to build interactive conversations:
talk
: Sends a message or prompt to the user and waits for a response (or specify False as the second argument to wait for the user to send a message first).loop
: Begins a conversational block that allows for repeated prompting.until
: Specifies the condition under which the loop should end.In practice, the talk
keyword is not used in isolation. It is usually enclosed in a loop
/until
structure. This pattern keeps the conversation repeating until valid input is obtained.
Example Usage:
ask
MethodThe ask
method is used to extract structured data from a response. By providing an example object, you can ensure that the output is formatted predictably for further processing.
Example:
Below is a complete example that combines talk
, loop
, until
, and ask
to build a seamless interactive conversation:
loop
, talk
, until
, and ask
empower you to design robust, interactive workflows.Armed with these constructs, you can build dynamic, platform-agnostic conversational agents using Based. This guide has provided enhanced examples that showcase how to structure interactive conversations effectively. Happy coding!