# Escalate AI agent conversations to Freshdesk > Connect Freshdesk so your AI agent can escalate a conversation by opening a ticket for your support team The Freshdesk integration lets your QwryAI agent escalate a conversation to your support team by opening a ticket in Freshdesk. It's for teams that already work their queue in Freshdesk and want the agent to handle routine questions, then pass the rest on with an AI-written summary and a link to the full conversation. Tickets can be created from any channel where the [Escalations](/docs/user-guides/chatbot/actions/escalate-to-human) Action runs, such as the Chat bubble, Help page, WhatsApp, Instagram, Messenger and email. ## Before you start * A QwryAI account with an agent. * Your Freshdesk **subdomain** and **API key**. See [Find your Freshdesk API key](#find-your-freshdesk-api-key). ## How to connect Freshdesk **1. Open your agent** Sign in to your [QwryAI dashboard](https://www.qwryai.com) and select the agent you want to connect. **2. Connect Freshdesk** Open **Integrations** and select **Connect** on the **Freshdesk** card. ![The Freshdesk card on the Integrations page, Connect Freshdesk so that your AI agent can escalate tickets to humans., with the pointer on Connect.](annotated/01-integrations-card.webp "Integrations › Freshdesk › Connect.") **3. Enter your subdomain and API key** A **Freshdesk Integration** window opens: *Allow QwryAI to integrate with Freshdesk?* Enter only the subdomain, such as `yourcompany`: the field already sits between `https://` and `.freshdesk.com`. Paste your **API Key** and select **Submit**. QwryAI checks the key with Freshdesk, closes the window and the card shows **Connected**. ![The Freshdesk Integration window, Allow QwryAI to integrate with Freshdesk?, with yourcompany typed between https:// and .freshdesk.com, an empty API Key field, and the Close and Submit buttons.](annotated/02-connect-window.webp "Enter your subdomain and API Key.") **4. Create the Escalations Action** Create an **Escalations** Action with **Freshdesk** as the **Ticket Platform**. See the [Escalations guide](/docs/user-guides/chatbot/actions/escalate-to-human). ### Find your Freshdesk API key 1. Sign in to Freshdesk. 2. Select your profile picture in the top-right corner. 3. Select **Profile Settings**. 4. Find **Your API Key** on the right and copy it. > [!TIP] > > Test the integration by asking your agent to speak to a person, and check that a ticket with the conversation summary appears in Freshdesk. The connection belongs to this agent only. Each agent connects to one Freshdesk account, so repeat these steps on every agent that should escalate to Freshdesk. ## Setup checklist 1. Connect Freshdesk on the agent's **Integrations** page, entering only the subdomain, and check that the card shows **Connected**. 2. Create a **Create ticket** Action under **Escalations** with **Freshdesk** as the **Ticket Platform**, and write a clear **When to use**. 3. If your Freshdesk marks **Type** as required, set the Action's **Freshdesk ticket type**. Without it, the Action won't save: *Your Freshdesk requires a ticket type — select one to save*. 4. Turn the Action on for the channels where customers should be able to escalate. 5. Ask your agent to speak to a person and check that the ticket appears in Freshdesk. ## What the AI agent sends to Freshdesk When it creates a ticket, the agent first makes sure it has the customer's name and email, asking for them if the channel or contact doesn't already provide them. It then creates the ticket with these fields: | Freshdesk field | What QwryAI sends | | - | - | | **Subject** | A short subject the agent writes from the customer's issue. The customer isn't asked for it. | | **Description** | An AI-written summary of the issue, from the customer's point of view. | | **Requester** | The customer's name and email. | | **Priority** | Low, Medium, High or Urgent, chosen by the agent from the issue. | | **Status** | Open. | | **Type** | The Action's **Freshdesk ticket type**, only when you set one. | After the ticket is created, QwryAI adds a private note, *conversation link in QwryAI:*, followed by a link to the conversation in your QwryAI **Inbox**. QwryAI doesn't send tags, a group or a source, so Freshdesk's defaults apply. Files the customer sent in the chat aren't attached. ### Example ticket A customer on the Chat bubble writes that they were charged twice for one order and want a refund. The agent asks for their name and email, then creates: * **Subject:** Double charge on order, refund requested * **Description:** I was charged twice for the same order and would like the duplicate charge refunded. * **Requester:** Jane Doe, jane@example.com * **Priority:** High * **Status:** Open * **Private note:** conversation link in QwryAI, followed by the link ## What the customer sees The agent tells the customer the ticket was created. If Freshdesk refuses it, the customer is told *The support ticket could not be created, so the request has not been sent to a human agent.* The agent keeps replying in the chat afterwards. Your team's replies from Freshdesk reach the customer the way Freshdesk sends them, usually by email, and don't appear in the chat. Nothing syncs back from Freshdesk. ## Troubleshooting > [accordion] Connecting shows "Invalid API key or subdomain." > > Freshdesk rejected the key for that subdomain. Copy the key again from **Profile Settings**, check the subdomain belongs to the same account, and try again. > [accordion] Connecting shows "Invalid subdomain" or "Failed to connect to Freshdesk. Please check your subdomain." > > The subdomain doesn't match a Freshdesk account. Enter only the part before `.freshdesk.com`. If you use a custom domain, enter your original `freshdesk.com` subdomain. > [accordion] The subdomain field says it can only contain alphanumeric characters and hyphens > > You typed more than the subdomain, such as `yourcompany.freshdesk.com`. Remove the dots and everything after them. > [accordion] The customer was told the ticket could not be created > > Open the conversation in [Inbox](/docs/user-guides/chatbot/activity). Common causes: > > * The API key was revoked or regenerated. Disconnect and connect again with the current key. > * Your Freshdesk requires **Type** and the Action's **Freshdesk ticket type** is empty. > * The customer didn't give an email address. > [accordion] Tickets aren't appearing in Freshdesk > > Check that the **Create ticket** Action is enabled, uses **Freshdesk** as its **Ticket Platform**, and is on for the channel you're testing, and that its **When to use** covers the request. > [!NOTE] > > A failed ticket doesn't send an email or alert. Check the conversation in **Inbox** when a customer reports that escalation didn't work. ## Frequently asked questions > [accordion] Does Freshdesk receive the full conversation? > > No. The description is an AI-written summary, and a private note links to the full conversation in QwryAI. Chat attachments aren't added. > [accordion] Can my team reply to the customer in the chat from Freshdesk? > > No. Freshdesk replies reach the customer the way Freshdesk sends them, usually by email. > [accordion] Can I set the ticket type or priority? > > Set a fixed type in **Freshdesk ticket type**. The agent picks the priority for each ticket. > [accordion] Can I connect more than one Freshdesk account? > > Each agent connects to one Freshdesk account. Several agents can connect to the same account. > [accordion] Does creating a ticket use extra credits? > > No. Only the agent's reply uses credits, as usual. > [accordion] What happens to my Escalations Actions if I disconnect Freshdesk? > > Disconnecting deletes the **Create ticket** Actions that use Freshdesk. The confirmation dialog lists them first. ## Next steps > [card] Escalations Action | /docs/user-guides/chatbot/actions/escalate-to-human | Choose when your agent escalates, which details it collects and which channels it escalates from.