sparrowdesk-logo-transparent-1.png
Go to sparrowdesk.com
Home
SparrowDesk Overview
  • Overview of SparrowDesk
  • Feature Overview in SparrowDesk
  • SparrowDesk Glossary
Getting Started
  • Setting Up Account Details
  • Default Business Hours
  • Understanding and Creating Teams
  • Inviting Team Members to the Platform
  • Roles and Permissions
  • Single Sign-On
  • Brands in SparrowDesk
  • Getting Started FAQs
  • Use a custom domain for your support portal
  • Customize Customer Email Notifications
Inbox
  • Understanding the Inbox in SparrowDesk
  • Managing Custom Views in Inbox
  • Live Chats in Inbox
  • Staying on Top of New Messages from Customers
  • Conversation Fields in SparrowDesk
  • Merging Conversations in SparrowDesk
  • Round Robin assignment explained
  • Export Conversations as CSV
  • Bulk update fields
  • Forward a Conversation to an External Contact
  • Common Email Delivery Errors
  • Add Watchers to a Conversation
Channels
  • Slack as a Channel
  • WhatsApp as a Channel
  • Facebook Messenger as a Channel
  • Setting Up Email as a Support ChannelConnect your custom email address How do I send and receive emails via SMTP and IMAP ? How do I find my SMTP/IMAP server address and port number? Common Errors while Connecting through SMTP/IMAPHow to Prevent Emails From Going to Spam Email Signatures
  • Installing Chat Widget Chat Widget Installation on WordPressInstall the Chat Widget on ShopifyCustomising Chat WidgetEmbedding and Configuring the SparrowDesk Chat WidgetChat Widget SettingsWhy End Users Don’t Always See Their Chat HistoryTrack page visits in SparrowDesk
Contacts
  • Contacts in SparrowDesk
  • How to manage contact segments
  • Deleting and Blocking Contacts in SparrowDesk
  • Contact Fields in SparrowDesk
Reports
  • Conversation Report
  • Team Performance Report
  • Understanding the AI Agent Report in SparrowDesk
  • Viewing CSAT reports in SparrowDesk
  • Reports FAQ
  • Exporting Reports as PDF
  • Help Center Reports
  • Build a Custom Report
Automation
  • Macros
  • Business Hours
  • Service-Level Agreements (SLAs)
  • Setting up CSAT (Customer Satisfaction) in SparrowDesk
Zoona AI
  • AI Suggested replies in your Inbox
  • AI-Generated Chat Subjects
  • Zoona AI Knowledge Improvements
  • Introduction to AI AgentAI Agent - Configure PersonaTraining your AI AgentZoona AI Agent CommandsAI Agent - Deploying on chatAI Agent - Deploying on EmailHow to Create a Command Zoona AI Agent - FAQUnderstanding AI resolutions in SparrowDesk
Workflows
  • Automate repetitive tasks through Workflows
  • How to Create a Workflow
  • Workflow Blocks Library
  • Notify a Slack Channel from a Workflow
Help Centre
  • Write Knowledge Articles for your Help Centre and AI Agents
  • Setting Up and Customizing Your Help Center
  • Use a Custom Domain for Your Help Center
  • Make Your Help Centre Discoverable in Search results
  • Adding Google Tag Manager to your Help Center
  • Creating a Ticket Form Setting up Customer Portal
Billing
  • How does SparrowDesk pricing work?
  • What is Seat ?
  • Manage your Billing and Invoices
  • About Sales Tax
  • How to cancel your subscription
  • Frequently Asked Questions
  • AI Co-pilot and AI Resolution billing
  • SparrowDesk Startup Program
Apps and Integrations
  • Okta Integration
  • HubSpot Integration
  • SurveySparrow Integration
  • Zapier Integration
  • Attio Integration
  • Linear Integration
  • Jira Integration
  • Gmail Integration
  • Notion Integration
  • Shopify Integration
  • Migrating from Freshdesk
  • Zoho CRM integration

How to Create a Command

Timer3 min read
JustinJustin

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.

image.png


Examples

Here are a few examples of what you can do with Commands.

Tag a conversation based on topic

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.


Process a refund via API

Trigger: When a customer raises a refund request

Command:

  1. Make an API call to your backend to check if the customer's subscription is valid
  2. If valid, check your refund policies to determine eligibility
  3. If the customer is eligible, make another API call to process the refund
  4. Once confirmed, send the customer a message letting them know the refund has been processed

This handles the full refund workflow automatically, from eligibility check to customer confirmation, without a support agent needing to step in.



Getting to Commands

  1. Log in to your SparrowDesk account
  2. From the sidebar, click the Zoona AI icon
  3. Select your AI Agent, then click Knowledge
  4. From the tabs at the top, click Commands

image.png

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


Creating a Command

Click Add Command.

image.png

A modal will open with two fields to fill in.

Screenshot 2026-04-19 at 3.27.01 PM.png

1. Define when to trigger this command

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."

2. Define what the command should do

Describe the action in natural language.

Screenshot 2026-04-19 at 3.31.54 PM.png

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

image.png

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:

  • Name - a label to identify this API call later
  • HTTP method - choose from GET, POST, PUT, PATCH, or DELETE
  • Endpoint - the API URL; you can use platform variables to make it dynamic
  • Authentication - choose from No Authentication, Basic Authentication, Bearer Token, or OAuth
  • Headers - define headers that will be sent with every request
  • Body - available for POST, PUT, PATCH, and DELETE methods; build the request body using platform variables

Once configured, you can Test Request to see a sample response before saving the API call.


Setting where the command is active

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.

image.png

Publishing the command

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.

image.png


Managing existing commands

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

  • Disable - turns the command off without deleting it; the AI Agent will skip it even if the trigger condition is met
  • Edit - opens the command so you can update the trigger or action instructions
  • Delete - permanently removes the command

image.png

Powered By SparrowDesk

Table of ContentsOn this page