Skip to content
QwryAI
Documentation
Pages

AI Agent Management

Hand off AI agent conversations to a human

Let your AI agent hand a conversation to your team by creating a ticket in QwryAI Tickets or your connected helpdesk

The Escalations Action lets your QwryAI agent hand a conversation to a person by creating a support ticket. The ticket goes to QwryAI Tickets or to a connected helpdesk such as Zendesk, Salesforce, Intercom or Freshdesk, with the customer's details and a summary of the conversation, so your team can pick up where the agent left off. Escalations can run on every channel, including the Chat bubble, Help page, WhatsApp, Instagram, Messenger, email, Slack and phone.

Best for: issues the agent can't resolve and that don't need an answer this second: anything your team can work as a ticket and follow up on.

Common use cases:

  • "I want to speak to a human"
  • "Connect me to support"
  • "This didn't solve my issue"
  • "I need help with my billing"
Create Action › Escalations.

Before you start

The Action creates tickets in QwryAI Tickets or in a helpdesk you've connected. Only those appear in the Ticket Platform list.

  • QwryAI is always in the list. Tickets appear in Tickets in the sidebar.
  • To use another helpdesk, open Integrations in the sidebar and connect it first.

Supported platforms:

How to create the Action

  1. Open Actions

    In your QwryAI dashboard, select your agent and click Build › Actions in the sidebar.

  2. Create the Action

    Click Create Action, then the Escalations card. The dialog shows a sample chat that ends in a submitted ticket. Click Start customizing.

    Select Start customizing to open the editor.
  3. Configure General

    Action name: a name that tells the agent what the Action is for, such as create_ticket, create_ticket_refunds or create_ticket_whatsapp. Spaces turn into underscores. The name needs at least 3 characters and must differ from your other Actions' names.

    Name the Action after the requests it handles.

Ticket Platform: where tickets are created. The sections that follow depend on this choice.

Ticket Platform lists QwryAI and every helpdesk you've connected.

When to use: when the agent should create a ticket. It comes prefilled with a default you can edit, and Reset restores it:

Example conversation
Create a ticket when:
1. The user explicitly asks to submit a complaint or requests support from a human.
2. The user asks a question you don't know the answer to, but confirm before creating the ticket.

Required steps:
1. Request the email if you don't have it, and confirm it if known.
2. Understand the topic fully.
3. Tell the user that support will contact them, then create the ticket.
When to use comes prefilled; Reset restores the default.

To run the Action only as a step in a Procedure, turn on Only use in Procedures. When to use is then hidden, because the agent no longer decides when to call the Action.

Click Continue to save the section.

Continue saves General and opens the next section.
  1. Configure Details collection

    With QwryAI as the platform, choose how the agent collects the customer's details and which extra fields it asks for. See Details collection by platform.

  2. Add Tags

    With QwryAI as the platform, the Tags section lets the agent tag each ticket it creates. See Tags, or click Skip to leave it empty.

  3. Choose Channels

    Turn the Action on or off for each configured channel. Channels you haven't set up yet are listed under Unconfigured channels with a Setup link. See Channels.

  4. Enable and test

    Click Enable. The header shows an Enabled switch, and the Action is live for your agent straight away. Then test it in the Preview on the right.

Details collection by platform

QwryAI Tickets

When the platform is QwryAI, you choose how the agent collects the customer's details before it opens the ticket.

How should details be collected? This applies to the Chat bubble and the Help page. Other channels, such as WhatsApp and Instagram, always collect details conversationally.

OptionWhat it does
Collect from a formVisitors fill out the fields in a widget inside the chat.
Collect conversationallyThe agent asks for the details in the conversation.

Collect additional details: the fields collected before the ticket is created. Email, Name, Subject and Description are built in:

FieldCollected as
EmailWhere the support team replies
NameWho the ticket is from
SubjectA short summary of what the ticket is about
DescriptionThe full details of the request

Click Add field to add one of your custom fields, such as an order number or a product. Use Search fields... to find one. A field you add is required by default.

Tags

The Tags section lets the agent label each ticket it creates with tags from your tag list. It sits between Details collection and Channels.

Click Add tag and pick a tag. Then describe when it applies in When should the AI agent use this tag?, for example The customer reports a damaged or missing item. Descriptions can be up to 200 characters.

The agent reads each description and adds every tag that fits, so a ticket can get several tags or none.

If the tag you need doesn't exist yet, type its name in Search or create a tag and click Create. Typing the name of an archived tag offers Restore instead. An archived tag stays on the Action marked Archived until you restore it or remove it.

Zendesk

When the platform is Zendesk, you control what goes on the ticket.

Conversation context: what the ticket includes.

OptionWhat it does
AI summaryPuts a concise, AI-written summary on the ticket.
Full conversationPuts the literal transcript on the ticket instead, with any files the user sent attached to it.

Internal note (optional): a private note added to the ticket for your team. Use variables in double curly braces to have the agent fill in details from the conversation:

Example conversation
Reason of contact: {{reason_of_contact}}
Order ID: {{order_id}}
Status: {{status}}

Custom fields (optional): your own Zendesk ticket fields, such as an order number or request type. Select them with Search custom fields..., and the agent fills them in from the conversation.

Brand: shown when your Zendesk account has more than one brand. The ticket is created under the brand you pick, and the default brand is selected to start with.

Other platforms

Salesforce, Intercom, Zoho Desk and Gorgias have no platform-specific options. Two platforms show extra fields when you pick them:

PlatformFields
HubSpotHubSpot pipeline ID (optional) and HubSpot pipeline stage ID. Leave the pipeline ID empty to use your portal's default pipeline. Leave the stage ID as 1 for the default New stage, or set it to a valid stage in your custom pipeline.
FreshdeskFreshdesk ticket type, sent as the ticket's Type. Leave it unset to omit it. If your Freshdesk marks Type as required, you must pick one to save.

How it works

When the Action runs, the agent:

  1. Collects any details it still needs from the customer.
  2. Creates a ticket on the selected platform.
  3. Adds the customer's details and the conversation to the ticket.

Your team continues from the helpdesk.

Example. A customer writes "Hi, my order #1042 arrived with a cracked mug. Can someone from your team sort this out?" Following the default When to use, the agent asks for an email address if it doesn't have one, makes sure it understands the problem, tells the customer that support will contact them, and creates the ticket with a subject and description it writes from the conversation.

Handover with QwryAI Tickets

When the platform is QwryAI, creating a ticket hands the conversation to your team:

  • The agent stops replying, and the customer's follow-up messages go to the ticket.
  • Your team replies from Tickets, and the replies reach the customer in the same chat or thread.
  • Closing or cancelling the ticket hands the conversation back to the agent. If the conversation has several open tickets, this happens when the last one closes.

If the ticket is created during a Procedure, the agent finishes the Procedure first. See Ticket lifecycle for what happens next.

When should the AI agent escalate?

When to use decides when the agent creates a ticket, so it decides how often customers reach your team. Escalate too eagerly and your team answers questions the agent could have handled. Escalate too late and customers get stuck.

Good reasons to escalate:

  • The customer asks for a person. "I want to speak to a human" should always work.
  • The agent can't answer from its content. Have it confirm with the customer before it opens the ticket, as the default When to use does.
  • The request needs something no Action can do, such as a refund your team must approve.
  • The topic needs a person by policy, such as legal complaints or account security.

Here's a sample When to use that adds these rules to the default:

Example conversation
Create a ticket when:
1. The customer asks to speak to a person, or to file a complaint.
2. You can't answer the question from your knowledge. Confirm with the customer
   before creating the ticket.
3. The customer asks for a refund or a change to an order that has shipped.
4. The customer reports a legal issue or a problem accessing their account.

Do not create a ticket for questions you can answer, such as shipping times
or the return policy.

Required steps:
1. Request the email if you don't have it, and confirm it if known.
2. Understand the topic fully.
3. Tell the user that support will contact them, then create the ticket.

For a dedicated flow, add a second Escalations Action with its own name and rules, such as create_ticket_refunds, or turn on Only use in Procedures and call it from a Procedure step.

Limitations

  • Only Zendesk can carry the full transcript. Other platforms receive an AI-written summary of the conversation.
  • Form collection applies to the Chat bubble and Help page only. Other channels always collect details conversationally.
  • Details collection and Tags are available with QwryAI Tickets only. Other platforms don't show these sections.
  • An Action holds up to 5 tags. Add tag is greyed out at the limit. Remove a tag to make room.

Best practices

Frequently asked questions

What does the customer see when the AI agent escalates?

It depends on the platform. With QwryAI, the agent collects the details you set up, from a form in the chat or by asking in the conversation, then creates the ticket and tells the customer it was opened. In the Chat bubble the customer sees a ticket card marked Submitted. The agent then stops replying, and your team's replies appear in the same chat. See How it works.

What happens if no one on my team is available?

The ticket is still created. In QwryAI Tickets, it's assigned by your assignment settings, or waits unassigned until someone picks it up.

What's the difference between Escalations and live chat?

Escalations open a ticket for follow-up and work with QwryAI Tickets and connected helpdesks. QwryAI live chat hands the conversation to a person on your team in real time. Use live chat for urgent issues when your team is staffed, and Escalations for anything that can wait.

Does the ticket include the full conversation?

Only on Zendesk, with Conversation context set to Full conversation. Other platforms receive an AI-written summary, along with the customer's details and any fields you collect.

How does the conversation go back to the AI agent?

With QwryAI Tickets, close or cancel the ticket. The agent answers the customer's next message once no other ticket on the conversation is open.

Next steps

Explore the documentation