# Reply to Helpdesk tickets from Slack threads > Post a card for each new ticket in a Slack channel, and answer the customer or leave notes from the card's thread Slack ticket threads let your team work Helpdesk tickets from Slack. When a ticket matches a trigger, QwryAI posts a **ticket card** in the Slack channel you pick. Whatever your team writes in that card's thread goes back to the ticket: * **Reply from Slack.** A normal message in the thread is sent to the customer as a teammate reply, under your Slack name. * **Keep it internal.** Start the message with `internal:`, or mention a teammate, and it's saved on the ticket as an internal note instead. ![A new ticket's card arriving in the #support Slack channel with the ticket number and subject in bold, From and the customer's name, the description, the Open ticket link and the reminder about internal: and mentions, then a teammate replying in its thread and the reply appearing in the ticket's conversation in QwryAI.](walkthroughs/slack-ticket-thread-reply.gif) Slack ticket threads are set up with the **Start Slack thread** action in [Triggers](/docs/user-guides/chatbot/help-desk/triggers). The same action is available in [Automations](/docs/user-guides/chatbot/help-desk/automations). ## Before you start **1. Connect Slack** Connect the [Slack integration](/docs/user-guides/integrations/slack) to your AI agent under **Integrations**. Ticket cards are posted in that Slack workspace. ![The Slack card on the Integrations page with its description and the pointer on Connect.](annotated/01-connect.webp "Connect Slack under Integrations first.") **2. Pick a channel for your support team** Anyone who can post in the channel can reply to customers from a card's thread, so use a channel that only your support team is in. **3. Invite QwryAI to a private channel** QwryAI joins public channels on its own when it posts the first card. For a private channel, run `/invite @QwryAI` in the channel first, or the card can't be posted. ## Set up a Slack thread trigger **1. Create a trigger** Go to **Settings › Helpdesk › Triggers** and select **New trigger**. Give it a name, such as `Post new tickets to #support`. **2. Run it on new tickets** A new trigger starts with the condition **Ticket** is **Created**, which is what you want here: each new ticket gets its card as soon as it's created. Add other conditions to narrow it down, for example **Channel** is any of **Email**, or **Team** is **Billing**. **3. Add the Start Slack thread action** Under **Then**, set the action to **Start Slack thread**. ![The action type list open under Then, with Send email, Send Slack message, Start Slack thread and Send webhook at the bottom and the pointer on Start Slack thread.](annotated/02-action-type.webp "Set the action to Start Slack thread.") **4. Name the channel** Type the channel's name, such as `#support`. The notes under the field sum up how the thread works. ![The Start Slack thread action with #support typed as the channel and its notes: each ticket gets one card in this channel, replies in the card's thread go to the customer right away and editing or deleting in Slack doesn't unsend, start with internal: or @mention someone to keep a message internal, and invite @QwryAI to the channel.](annotated/03-channel.webp "Name the channel the cards go to.") **5. Save** Make sure **Active** is on and select **Create trigger**. The next ticket that matches gets a card in the channel. ![The New trigger panel named Post new tickets to #support with the condition Ticket is Created, the Start Slack thread action for #support, the Active switch and the pointer on Create trigger.](annotated/04-trigger.webp "A new trigger already runs when a ticket is created.") > [!NOTE] > > A ticket gets only **one** card. If several triggers or automations with **Start Slack thread** match the same ticket, the first one posts the card and the others leave it as it is. **Start Slack thread** is also an action in [automations](/docs/user-guides/chatbot/help-desk/automations), so you can post a card for tickets that have waited too long instead of every new one. ![The action type list of a new automation open under Then, with the pointer on Start Slack thread between Send Slack message and Send webhook.](annotated/05-automation-action.webp "Automations can start a Slack thread too.") ### Changing or pausing the trigger Changes to the trigger only affect tickets it posts from then on. Cards that are already in Slack stay where they are, and replies in their threads keep reaching their tickets. | If you... | New tickets | Cards already posted | | - | - | - | | **Change the channel** | Get their card in the new channel. | Stay in the old channel. Replies in their threads still reach the ticket. | | **Pause the trigger** | Don't get a card. | Replies in their threads still reach the ticket. | ## The ticket card The card is one Slack message with: * **The ticket number and subject** in bold, for example *TKT-11: Order #1042 hasn't arrived* * **From** and the customer's name, or their email if there's no name * **The ticket's description**, up to its first 1,500 characters * An **Open ticket** link to the ticket in QwryAI * A reminder that replies in the thread go to the customer, and that `internal:` or an @mention keeps a message internal ![A new ticket's card arriving in the #support Slack channel, with TKT-11: Order #1042 hasn't arrived in bold, From and the customer's name, the description, the Open ticket link and the reminder in italics.](walkthroughs/slack-ticket-card.gif) The card is posted once and isn't updated afterwards. It doesn't show the ticket's status, assignee, priority or tags, and it has no buttons: assign, prioritize and close the ticket in QwryAI through **Open ticket**. ![The ticket Order #1042 hasn't arrived opened in Tickets, with its status and the pointer on Close in the header, the conversation, the composer, and the Details panel with assignee, team and priority.](annotated/06-open-ticket.webp "Open ticket brings you here to assign, prioritize and close.") ## Replying from Slack Write in the card's thread. Each message is saved on the ticket as soon as it's posted. > [!TIP] > > To talk a ticket over with teammates in the thread, start each message with `internal:`. The customer never sees it, and it's saved on the ticket as a note. ### Reply or internal note? | You write | It becomes | | - | - | | A normal message | A **reply** sent to the customer under your Slack name. | | A message that starts with `internal:` | An **internal note** on the ticket. The `internal:` prefix is removed. | | A message that mentions a teammate, such as `@Sam can you check this?` | An **internal note**, kept as written. Mentions are treated as talk between teammates. | | A message that mentions only **@QwryAI** | A **reply**. The mention is removed before it's sent. | ![A teammate writing internal: in a card's thread, and the message showing on the ticket in QwryAI as an internal note without the prefix, while the customer's conversation stays unchanged.](walkthroughs/slack-ticket-thread-note.gif) ![A teammate writing @Sam can you check this? in a card's thread, and the message showing on the ticket in QwryAI as an internal note, kept as written.](walkthroughs/slack-ticket-thread-mention.gif) ![A teammate writing @QwryAI followed by an answer in a card's thread, and the customer receiving the answer in the chat widget without the @QwryAI mention.](walkthroughs/slack-ticket-thread-bot-mention.gif) > [!WARNING] > > Replies reach the customer **right away**. Editing or deleting your message in Slack afterwards doesn't change or unsend what the customer received. ### What a reply does A reply from a thread works like a reply from the ticket: * It's added to the ticket's conversation under the name on your Slack profile, and the customer gets it on that conversation's channel, such as the chat widget or WhatsApp. * It's translated into the customer's language when [translation](/docs/user-guides/chatbot/help-desk/translation) is on. * It counts as a teammate reply, so your AI agent stops answering that conversation, as when you [take it over](/docs/user-guides/chatbot/help-desk/takeover). ![A teammate replying in English in a card's thread for a German-speaking customer, the reply showing in English on the ticket in QwryAI, and the customer reading it in German in the chat widget.](walkthroughs/slack-ticket-thread-translated.gif) A ticket with no conversation, such as one created by hand in **Tickets**, has no customer chat to reply into. On those tickets, a reply from the thread is saved on the ticket as a comment. ![A teammate replying in the thread of a card for a ticket created by hand, and the reply showing on the ticket in QwryAI as a comment.](walkthroughs/slack-ticket-thread-comment.gif) ### Mentioning @QwryAI in a ticket thread Inside a card's thread, mentioning **@QwryAI** doesn't ask your AI agent a question: the message is handled like any other thread message. To ask your AI agent something, mention it in a channel message outside the ticket threads. See [Slack](/docs/user-guides/integrations/slack). ## Limitations * The thread only carries messages from Slack to QwryAI. Customer messages, replies and notes from QwryAI, and changes to status, assignee or priority aren't posted to the thread. Follow the ticket through **Open ticket**. * There are no card buttons and no reactions on thread messages. Check the ticket in QwryAI to see what was saved. * Files attached in Slack aren't sent; only the message text is. * Macros can't be inserted from Slack. Use the ticket composer to reply with a [macro](/docs/user-guides/chatbot/help-desk/macros). * One card per ticket. A ticket that already has a card can't be posted again. * Replies are signed with the Slack name of whoever wrote them; they aren't matched to a QwryAI member. ## Troubleshooting > [accordion] No card was posted for a new ticket > > Check that the trigger is **Active**, that its conditions match the ticket, and that Slack is still connected under **Integrations**. Check the channel name for typos, and for a private channel, run `/invite @QwryAI` in it. > > ![Running /invite @QwryAI in a private Slack channel, then creating a ticket in QwryAI and its card arriving in that channel.](walkthroughs/slack-ticket-thread-private-invite.gif) > [accordion] Replies in a thread don't reach the ticket > > QwryAI has to be connected to the same Slack workspace and be a member of the channel. If Slack was disconnected, replies written in the meantime aren't saved: post them again once it's back, or reply from the ticket. > [accordion] My message was saved as a note instead of a reply > > It started with `internal:` or mentioned someone other than @QwryAI. Post it again without the mention. ## Frequently asked questions > [accordion] Can I reply to Helpdesk tickets from Slack? > > Yes. Write in the ticket card's thread and your message is sent to the customer under your Slack name. Start it with `internal:` or mention a teammate to save it as an internal note instead. > [accordion] Does the thread show the customer's answers? > > No. The thread carries your team's messages to the ticket, but nothing comes back from QwryAI. Open the ticket to read the customer's replies. > [accordion] Can I close or assign a ticket from Slack? > > No. The card has no buttons. Use **Open ticket** to change it in QwryAI. > [accordion] Can I start a thread for an existing ticket? > > A trigger with only the **Ticket** is **Created** condition posts new tickets. Use a trigger that runs on updates, or an automation, to post tickets that already exist the next time they match. ## Related > [card] Triggers | /docs/user-guides/chatbot/help-desk/triggers | Run actions the moment a ticket is created or updated. > [card] Slack | /docs/user-guides/integrations/slack | Connect Slack to your AI agent.