Overview
You can configure your Character to trigger certain Actions when appropriate conditions are met. Action is defined by its name and condition. For example, an Action could be namedwave and have the condition when user says hello.
In this tutorial, we’ll walk through how to configure Actions for the “Cat Robot” we created in the Quickstart Guide.
Feel free to follow along with your own Character!
Step 1. Add an Action to your Character
First, navigate to the “Cat Robot” (or your own Character) on the Playground. Now, let’s add a new Action called “Purr”:- Locate the Actions section below the Character description on the left-side panel.
- Click the [Add] button
- Enter action name:
Purr - Enter condition:
When the user compliments you - Click the [Confirm] button
Step 2. Make your Character trigger an Action
Action is a boolean decision, meaning it is either triggered (true) or not triggered (false).
When your Character receives a Message from a User, your Character performs reasoning to decide which (if any) Actions to trigger.
After the triggering decision is made, your Character generates its verbal response to the User.
We’ll call our Messages API endpoint to make the “Cat Robot” trigger its “Purr” Action.
When calling the Messages endpoint, action triggering decisions are returned in the actions field of the response.
Not sure how to call our Messages API endpoint?We recommend checking out the Quickstart Guide and API References.
"You are such a smart cat!".

