# AI agent Actions: let your agent take action for customers > Actions let your QwryAI agent do more than answer: open a ticket, hand over to your team, collect details, call your own API, and more Actions are tools your QwryAI agent can use in the middle of a conversation. Each one connects the agent to a specific task: creating a support ticket, handing the chat to a person, saving a lead, calling your API, searching the web, or showing a button. With Actions, the agent can resolve a request instead of only describing how to resolve it. You choose which channels each Action works on, from the Chat bubble on your website to WhatsApp, Instagram, email and phone. You add and configure Actions in **Build › Actions**. The agent decides when to call each Action from the **When to use** instructions you write for it. ![The Actions page opened from Build › Actions in the sidebar, with the My Actions and Create Action tabs, a Search box, a Type filter, and two Action cards with their on/off switches and Customize buttons.](annotated/01-sidebar-actions.webp "Build › Actions lists every Action on the agent.") > [!NOTE] > > You can add more than one Action of the same type. For example, two Escalations Actions, one for refunds and one for everything else, each with its own **When to use** and its own fields. A new Escalations Action is named `create_ticket`, the next one `create_ticket_2`, and so on, and you can rename them. > [!NOTE] > > Some Actions wait in your draft and others go live as soon as you enable them. Custom actions, Custom button, Suggested messages and Web search are saved to the agent's draft: customers see them after you select **Publish** in the top-right corner. Escalations, QwryAI live chat, Collect leads and Collect data have an **Enable** button and go live when you select it. See [Drafts and publishing](/docs/user-guides/chatbot/drafts-and-publishing). ## Available Actions Open **Create Action** to see every Action type. **My Actions** lists the ones you've added; filter them with **Type** (**All types**, **Custom**, **Integrations**, **Escalations** or **Tools**) or find one with **Search**. ![My Actions with the Type filter open, listing All types, Custom, Integrations, Escalations and Tools.](annotated/02-type-filter.webp "Filter My Actions by type.") ### Support and handoff | Action | What it does | | - | - | | [Escalations](/docs/user-guides/chatbot/actions/escalate-to-human) | Create a support ticket in QwryAI **Tickets** or a connected helpdesk when a customer needs human help | | [QwryAI live chat](/docs/user-guides/chatbot/actions/qwryai-live-chat) | Hand the conversation to a person on your team in QwryAI, in real time | | [Salesforce live chat](/docs/user-guides/chatbot/actions/salesforce-actions) | Hand over to a human agent in Salesforce | | [Zendesk Messaging](/docs/user-guides/integrations/zendesk-messaging) | Hand over to a human agent in Zendesk Messaging | | [Sunshine live chat](/docs/user-guides/integrations/sunshine) | Hand over to a human agent through Sunshine | | [Transfer to phone number](/docs/user-guides/chatbot/actions/transfer-to-phone) | Pass a live phone call to a person's phone number | ### Commerce | Action | What it does | | - | - | | [Shopify](/docs/user-guides/chatbot/actions/shopify-actions) | Recommend products, manage the cart, place orders, handle returns and exchanges, and answer order and delivery questions | ### Lead capture | Action | What it does | | - | - | | [Collect leads](/docs/user-guides/chatbot/actions/collect-leads) | Capture a visitor's name, email and phone number as a lead | | [Collect data](/docs/user-guides/chatbot/actions/collect-data) | Collect the details you choose, in the conversation or with a form widget | | [Custom form](/docs/developer-guides/website-integration/client-side-custom-forms) | Show a custom form you build on your website to collect information | ### Scheduling | Action | What it does | | - | - | | [Cal](/docs/user-guides/chatbot/actions/cal) | Let customers check availability and book meetings without leaving the chat | | [Calendly](/docs/user-guides/chatbot/actions/calendly) | Let customers check availability and book meetings without leaving the chat | ### Other | Action | What it does | | - | - | | [Custom actions](/docs/user-guides/chatbot/actions/custom-action) | Call your API, run client-side code, and optionally show an interactive widget | | [Suggested messages](/docs/user-guides/chatbot/actions/suggested-messages) | Show clickable reply suggestions during the conversation | | [Slack](/docs/user-guides/chatbot/actions/slack) | Send notifications and updates to a Slack channel | | [Web search](/docs/user-guides/chatbot/actions/web-search) | Search the web in real time to answer questions with live data | | [Custom button](/docs/user-guides/chatbot/actions/custom-button) | Show a button that opens a link you choose | The **Stripe** card is marked **Coming soon** and can't be added yet. ![The Create Action tab with a gallery of Action cards, including Escalations, Custom actions, Collect leads, Collect data, Stripe (Coming soon) and Shopify, each with its capability chips.](annotated/03-create-action.webp "Create Action lists every Action type you can add.") Select a card to see a sample chat and a short description, then select **Start customizing** to open its editor. ![The Create Action gallery with the pointer on the Escalations card.](annotated/04-card-dialog.webp "Select a card to see what the Action does.") ![The Escalations dialog with a sample chat on the left, where the agent fills in a support form and shows a Submitted ticket card, and the description and Start customizing button on the right.](annotated/04-card-dialog--open.webp "Each card opens a preview with Start customizing.") > [!NOTE] > > **Action limits:** each agent can have 4 Actions on **Free** and **Starter**, 12 on **Growth**, and as many as you need on **Enterprise**. At the limit, **Create Action** shows *This agent has reached its limit of 12 Actions on your plan. Remove an Action or upgrade to add more.* and the cards can't be selected. ## How the agent decides to call an Action An enabled Action is a tool the agent can use, not a script it has to run. The agent can call an Action only when all of these are true: 1. **The Action is enabled** on your agent. 2. **The Action is turned on for the current channel.** See [Channels](#channels). 3. **The request matches the Action's When to use instructions,** or a step in a running Procedure references the Action. If [**Only use in Procedures**](#only-use-in-procedures) is on, the Action runs only from a [Procedure](/docs/user-guides/chatbot/procedures/procedures-overview) step, never on the agent's own judgment. ### Write clear When to use instructions Every Action editor opens on **General**, where **When to use** tells the agent when the Action applies. A vague one is the most common reason an Action never fires, or fires at the wrong moment. A descriptive **Action name**, such as `create_ticket_refunds`, also helps the agent understand what the Action is for. Many Actions start with a default **When to use**; **Reset** puts it back. ![The General section of a new Escalations Action with the Action name create_ticket, Ticket Platform set to QwryAI, the When to use instructions with a Reset button, and the Only use in Procedures switch off.](annotated/05-general.webp "General: the Action name, its settings, and When to use.") Describe the situation in the words customers actually use, and say when not to use the Action if another one could match the same request. Custom actions also have a **When not to use (optional)** box for this. For example, a **When to use** for an order-status lookup could read: ```text Use this action when the customer asks where their order is, when it will arrive, or what the status of a specific order is. Do not use it for product questions or for starting a return. ``` Select **Continue** to save a section and move to the next one. Each section shows a green check once it's complete. ![The General section of the Escalations Action with the pointer on Continue.](annotated/07-continue.webp "Continue saves the section and opens the next one.") ## Example: a customer asks for a person This example uses the [Escalations](/docs/user-guides/chatbot/actions/escalate-to-human) Action with **QwryAI** as the **Ticket Platform**, turned on for the Chat bubble. **1. The customer asks for help** A shopper opens the Chat bubble on your store and writes "My parcel arrived damaged and I'd like to talk to someone." **2. The agent picks the Action** The agent checks which Actions are on for the Chat bubble. The request matches the **When to use** of `create_ticket`, so the agent calls it. **3. The agent collects the details** The agent gathers what the ticket needs, such as the customer's email and a description of the problem, either by asking in the chat or with a form, depending on how you set up **Details collection**. **4. The ticket is created** The ticket appears in **Tickets** for your team, and the customer sees a ticket card marked **Submitted** in the chat. From then on your team answers in the same chat, and the agent stops replying until the ticket is closed. ## Channels Every Action has a **Channels** section that controls where it's available. Channels appear in one of three states: | State | What it means | What you can do | | - | - | - | | **Configured channels** | The channel is set up on your agent and the Action can run there. | Turn the Action on or off for that channel with its switch. | | **Unconfigured channels** | The Action can run on this channel, but you haven't set the channel up yet. | Select **Setup** to open that channel's settings in a new tab. | | Incompatible | The Action can't run on this channel at all. | Nothing. Select **channels** in *Some channels are incompatible with this action.* to see the list. | ![The Channels section of a saved Custom action with Configured channels Chat bubble (on) and Help page (off), each with a switch, and the note Some channels are incompatible with this action.](annotated/08-channels.webp "Switch the Action on or off for each configured channel.") Configured and unconfigured describe your own setup, so the same Action shows a different split on different agents. Incompatible channels belong to the Action type: they never become selectable, however you set the channel up. For example, a Custom button can't appear on WhatsApp, because WhatsApp can't show it. ![The Channels section with the incompatible channels tooltip open, listing the channels this Action can't run on.](annotated/09-incompatible.webp "Select channels in the note to see where the Action can't run.") > [!NOTE] > > Turning an Action on for a channel doesn't force it to run there. It only makes the Action available, and the agent still decides when to call it from your **When to use** instructions. > [!TIP] > > See [Channels](/docs/user-guides/chatbot/channels) for what each channel is and how to set it up. ## Only use in Procedures Every Action has an **Only use in Procedures** switch next to **When to use**. Turn it on when the Action should run **only** as a step inside a [Procedure](/docs/user-guides/chatbot/procedures/procedures-overview), never on the agent's own initiative. The Action still works, but the agent won't call it by its own judgment: it runs only when a Procedure step references it. Because the agent no longer decides when to use it, **When to use** is hidden and the editor explains why. ![The General section with Only use in Procedures switched on and the note: When to use is hidden. With Only use in Procedures on, the agent never triggers this by itself, so it needs no trigger description.](annotated/06-procedure-only.webp "With Only use in Procedures on, When to use is hidden.") Use it for sensitive or high-control tools, such as refunds, cancellations or escalations, that should only run at the right point of a defined flow. See [How Procedures run](/docs/user-guides/chatbot/procedures/how-procedures-run). ## Actions vs. Procedures vs. instructions | | What it controls | Use it for | Where | | - | - | - | - | | **Instructions** | How the agent behaves in every conversation: tone, scope and rules | "Always answer in a friendly tone," "Only discuss our products" | [Build › Instructions](/docs/user-guides/chatbot/build) | | **Actions** | One thing the agent can do, such as create a ticket or call your API | Any task that needs data from, or a change in, another system | **Build › Actions** | | **Procedures** | An ordered set of steps for one situation, which can call Actions along the way | Multi-step or high-stakes flows like refunds, where the order of steps matters | [Build › Procedures](/docs/user-guides/chatbot/procedures/procedures-overview) | For example, a refund request can go straight to an Escalations Action. If you want the agent to look up the order and ask for a photo first, put those steps in a Procedure, reference the Escalations Action in its last step, and turn on **Only use in Procedures** on that Action. ## Manage your Actions Saved Actions appear in **My Actions**. Each card shows the Action's name and type, a switch to turn it on or off, an options menu (**⋯**) and **Customize**, which reopens its editor. ![My Actions with two saved Custom actions, Help with QwryAI setup and Read current page, each with an on/off switch, an options menu and a Customize button.](annotated/10-my-actions.webp "Saved Actions appear in My Actions with an on/off switch.") ## Frequently asked questions > [accordion] Why isn't my agent using an Action? > > Check that the Action is enabled, turned on for the customer's channel, and that its **When to use** matches how customers phrase the request. If **Only use in Procedures** is on, a running Procedure has to reference it. Actions that save to the draft, such as Custom actions or Web search, also need **Publish** before customers can use them. > [accordion] Can an Action fail? > > It can, but an Action that's set up correctly shouldn't fail in normal use. An Action that depends on another system, such as a [Custom action](/docs/user-guides/chatbot/actions/custom-action) calling your API, can get an error back. When that happens the agent writes its own reply based on the error. Test each Action in the **Preview** beside its editor, and read real conversations in [Inbox](/docs/user-guides/chatbot/activity). > [accordion] How many Actions can my agent have? > > 4 on **Free** and **Starter**, 12 on **Growth**, and no limit on **Enterprise**. The limit counts per agent. When you reach it, **Create Action** shows a notice with an upgrade option, and you can remove an Action to make room. > [accordion] Can I turn an Action off without deleting it? > > Yes. Use the switch on its card in **My Actions**, or the **Enabled** switch at the top of its editor. The Action keeps its settings and you can turn it back on at any time. > [accordion] How do I test an Action? > > Every Action editor has a **Preview** chat on the right. Send a message that should trigger the Action and check the reply. The [Playground](/docs/user-guides/chatbot/playground) also uses your draft, so you can try Actions there before you **Publish**. Once it works, run [Tests](/docs/user-guides/chatbot/tests) to check that the agent keeps calling the right Action. ## Next steps > [card] Escalations | /docs/user-guides/chatbot/actions/escalate-to-human | Hand customers to your team with a ticket in QwryAI or your helpdesk. > [card] Custom actions | /docs/user-guides/chatbot/actions/custom-action | Connect your agent to your own API. > [card] Procedures | /docs/user-guides/chatbot/procedures/procedures-overview | Chain Actions into step-by-step flows.