Search
Commands tell your AI Agent what to do when a specific situation comes up in a conversation. This guide walks you through setting one up from scratch.

Here are a few examples of what you can do with Commands.
Trigger: When a customer sends a message
Command: If the customer is talking about a billing issue, add the tag "billing" to the conversation.
This keeps your inbox organized without anyone having to manually tag conversations.
Trigger: When a customer raises a refund request
Command:
This handles the full refund workflow automatically, from eligibility check to customer confirmation, without a support agent needing to step in.

Here you will see all existing commands and an option to add a new one.
Click Add Command.

A modal will open with two fields to fill in.

Describe the scenario in natural language. This is the condition the AI Agent checks during a conversation. For example: "When a customer reports a billing error" or "When a user asks to cancel their subscription."
Describe the action in natural language.

While typing, you can press / (forward slash) to insert structured building blocks:

Conversation fields - reference or update properties of the current conversation.
Contact fields - reference or update properties of the contact. For example, check a contact property and take action based on its value, or update it as part of the workflow.
Make API call - connect to a third-party system. When you select this, a modal opens where you configure the following:
Once configured, you can Test Request to see a sample response before saving the API call.
After defining the trigger and action, click Enable for Chat and Email to choose which channels this command should be active in. Select your preferred options and click Apply.

Click Publish Command to save and activate it. From this point on, the AI Agent will execute this command whenever it encounters a scenario that matches your trigger logic.

From the Commands tab, you can manage any published command:

Powered By SparrowDesk