# Use your AI agent in Zendesk Messaging > Let your AI agent answer customers in your Zendesk Messaging channels and hand chats to your team in Zendesk The Zendesk Messaging integration deploys your QwryAI agent as a bot inside your own Zendesk messaging channels, such as the Zendesk Web Widget, the mobile SDKs or WhatsApp. The agent answers customers there, and when a customer needs a person, it passes the chat to your team in Zendesk Agent Workspace. Customers stay in the same Zendesk channel the whole time. ## How it differs from Zendesk ticketing and Sunshine QwryAI has three Zendesk integrations. Each covers a different setup: | Integration | Where customers chat | What happens when they need a person | | - | - | - | | **Zendesk Messaging** (this page) | Your Zendesk messaging channels, with QwryAI as the responder | The chat moves to Zendesk Agent Workspace | | [Sunshine](/docs/user-guides/integrations/sunshine) | QwryAI's own widget: the Chat bubble, Center Stage or Help page | A Zendesk agent takes the chat, and their replies appear in the QwryAI widget | | [Zendesk](/docs/user-guides/integrations/zendesk) (ticketing) | Zendesk tickets, or any QwryAI channel for escalations | The agent replies on tickets, or opens an escalation ticket | You can't connect Zendesk Messaging and Sunshine on the same agent. Zendesk Messaging and the Zendesk ticketing integration can run together. > [!NOTE] > > Zendesk Messaging doesn't need the [Zendesk](/docs/user-guides/integrations/zendesk) ticketing integration: it has its own connection. ## Before you start * A QwryAI account with an agent. * Admin access to a Zendesk account with at least one Messaging channel. * Sunshine not connected on this agent. ## How to connect Zendesk Messaging **1. Connect Zendesk Messaging in QwryAI** Open your agent in the [QwryAI dashboard](https://www.qwryai.com) and go to **Integrations**. On the **Zendesk Messaging** card, select **Connect**. A Zendesk window opens: sign in and allow access. The card then shows **Connected**. ![The Zendesk Messaging card on the Integrations page, Deploy QwryAI as an AI agent in your Zendesk Messaging channels., with the pointer on Connect.](annotated/01-integrations-card.webp "Integrations › Zendesk Messaging › Connect.") ![Connecting Zendesk Messaging: selecting Connect on the card, signing in to Zendesk and allowing access, then returning to Integrations with the card showing Connected.](walkthroughs/zm-connect.gif) **2. Open marketplace bots in Zendesk** In Zendesk Admin Center, go to **AI › AI agents**. Under **Marketplace bots**, select **Manage marketplace bots**. **3. Choose channels for QwryAI in Zendesk** Select **QwryAI**. Under **Channels**, select each channel QwryAI should answer, then select **Save**. The **Responder** column changes to **QwryAI**. ![In Zendesk Admin Center: opening AI › AI agents, selecting Manage marketplace bots, choosing QwryAI, ticking the Web widget channel and saving, with the Responder column showing QwryAI.](walkthroughs/zm-marketplace-bots.gif) **4. Turn on channels in QwryAI** Once connected, a **Zendesk Messaging** card appears on **Channels**. Select **Manage** on it and open the **Connections** tab: *Choose which of your Zendesk channels this agent should answer. A channel can only be claimed by one agent at a time.* Turn on each channel this agent should answer, then select **Save changes** in the bar that asks *You have unsaved changes. Do you wish to save them?* QwryAI confirms with *Channels saved*. ![On Channels › Zendesk Messaging › Manage › Connections: switching on the Web widget row, which changes from Paused to Active, and selecting Save changes in the unsaved changes bar.](walkthroughs/zm-connections.gif) > [!WARNING] > > Your agent doesn't answer any channel until you turn it on here. Each channel row shows one of these: | Row shows | What it means | | - | - | | The channel type, such as **Web widget**, with a switch and an **Active** or **Paused** badge | QwryAI is the responder for this channel in Zendesk. Turn the switch on to have this agent answer it; while it's off, the row shows **Paused**. | | **Not assigned in Zendesk** | The channel wasn't selected for QwryAI in the previous step. | | **Used by agent** | Another QwryAI agent already answers this channel. A channel can only be claimed by one agent at a time. | > [!TIP] > > Send a message in one of the channels you turned on, such as your Zendesk Web Widget, and check that your agent replies. ## Supported channels Your agent can answer any messaging channel in your Zendesk account where **QwryAI** is the responder. The **Connections** tab names these channel types: * Web widget, iOS and Android * WhatsApp, Messenger and Instagram * Telegram, Twitter, LINE, WeChat, Viber and KakaoTalk * Apple Messages for Business and Google RCS * Twilio SMS, MessageBird SMS and Slack Connect Channels of other types are listed by their channel name. ## Hand off to a human Add the **Live chat** Action so your agent can pass a chat to your team in Zendesk Agent Workspace. **1. Create the Action** Go to **Build › Actions** and open **Create Action**. Select the **Zendesk Messaging** card (*Hand over from the AI agent to live chat with a human agent in Zendesk Messaging*). Until Zendesk Messaging is connected, the card asks you to connect it first. ![Create Action searched for Zendesk Messaging: selecting the Zendesk Messaging card opens a dialog that asks you to connect Zendesk Messaging first.](walkthroughs/zm-action-card.gif) **2. Choose when to hand off, then turn it on** The Action is named **Zendesk_Messaging_Live_Chat** and runs on the Zendesk Messaging channel only. Edit **When to use** to describe when the agent should hand off. By default, it hands off when the customer explicitly asks for a real person, or when the agent fails to resolve their issue after several attempts. Select **Continue**, then **Enable**. ![Creating the Zendesk Messaging live chat Action: reviewing the default When to use, selecting Continue, and selecting Enable.](walkthroughs/zm-live-chat.gif) What happens during a handoff: 1. The agent needs the customer's email. If Zendesk, the contact record or the conversation already has it, it isn't asked for; otherwise the agent asks. 2. The agent writes a subject and a first-person summary from the conversation, without asking the customer for them. 3. It passes the chat to Zendesk Agent Workspace and stops replying. It tells the customer a person will join only once the handoff succeeds. 4. Your team takes it from there in Zendesk. > [!NOTE] > > [Escalations](/docs/user-guides/chatbot/actions/escalate-to-human) Actions can still create tickets from this channel when their ticket platform is Zendesk. ## How it works * **Conversations.** Chats appear in your agent's [Inbox](/docs/user-guides/chatbot/activity) with Zendesk Messaging as the channel. * **Actions.** The channel page's **Actions** tab lists which Actions can run here. ![A customer on the Zendesk Web Widget asks a question, gets the agent's answer, asks for a person, gives an email, and the chat passes to a Zendesk agent in Agent Workspace.](walkthroughs/zm-handoff.gif) ## Limitations * Messages your team sends after a handoff don't appear in QwryAI. * An agent can't have Zendesk Messaging and Sunshine connected at the same time. ## Disconnect > [!WARNING] > > Remove QwryAI from your channels in Zendesk first, or customers on those channels won't get a reply. In Zendesk Admin Center, go to **AI › AI agents › Manage marketplace bots**, select **QwryAI**, clear its channels and select **Save**. Then in QwryAI, go to **Integrations**, open the menu on the **Zendesk Messaging** card and select **Disconnect**. QwryAI lists the Actions that will be deleted, including the **Live chat** Action, before you confirm. ![On Integrations, opening the Manage Zendesk Messaging connection menu, selecting Disconnect, and the dialog listing the Live chat Action that will be deleted.](walkthroughs/zm-disconnect.gif) ## Troubleshooting > [accordion] The AI agent doesn't reply in a channel > > Check both sides. In Zendesk Admin Center, under **AI › AI agents › Manage marketplace bots**, confirm the channel is selected for **QwryAI** so the **Responder** column shows **QwryAI**. Then in QwryAI, open **Channels › Zendesk Messaging › Manage › Connections** and make sure the channel is on and saved. > [accordion] A channel shows Not assigned in Zendesk > > QwryAI isn't the responder for that channel yet. Select it for QwryAI under **Manage marketplace bots** in Zendesk Admin Center, then come back to the **Connections** tab. > [accordion] A channel shows Used by agent > > Another agent in your workspace already answers that channel. Turn it off on that agent first. > [accordion] The handoff doesn't happen > > The agent needs an email before it can hand off. If the customer didn't share one, the chat stays with the agent. Also check that the **Live chat** Action is enabled and that its **When to use** matches the requests you expect. > [accordion] Connecting says to disconnect Sunshine > > *Disconnect Sunshine before connecting Zendesk Messaging.* An agent can use Zendesk Messaging or Sunshine, not both. Disconnect [Sunshine](/docs/user-guides/integrations/sunshine) on **Integrations** first. > [accordion] Connecting says the authorization expired > > *Zendesk Messaging authorization expired. Please connect again.* The Zendesk window stayed open too long. Select **Connect** again. ## Frequently asked questions > [accordion] Do I need the Zendesk ticketing integration to use Zendesk Messaging? > > No. Zendesk Messaging has its own connection. > [accordion] Which Zendesk channels can the agent answer? > > Any messaging channel in your Zendesk account where QwryAI is the responder. See [Supported channels](#supported-channels). > [accordion] What's the difference between Zendesk Messaging and Sunshine? > > With Zendesk Messaging, customers chat in your Zendesk channels and handoffs go to Zendesk Agent Workspace. With [Sunshine](/docs/user-guides/integrations/sunshine), customers chat in the QwryAI widget, and a Zendesk agent's replies appear there. One agent can use only one of the two. > [accordion] Can two agents answer the same Zendesk channel? > > No. A channel can only be claimed by one agent at a time. You can use different agents on different channels. > [accordion] Does the agent ask signed-in customers for their email? > > No, when Zendesk already provides it. Customers without a known email are asked before the handoff. ## Next steps > [card] Zendesk | /docs/user-guides/integrations/zendesk | Let your agent reply to Zendesk tickets, or open a ticket when a chat needs a person. > [card] Sunshine | /docs/user-guides/integrations/sunshine | Hand customers from the QwryAI widget to a live Zendesk agent.