---
title: "Ask an AI agent inside a ticket"
description: "Ask Kai Copilot or one of your own agents for a draft, an investigation or a lookup from the ticket sidebar, without the customer seeing any of it."
url: https://help.gleap.ai/fr/articles/299-ask-an-ai-agent-inside-a-ticket
collection: "Inbox and tickets"
updated: 2026-11-16
language: fr
alternates: [en]
---

# Ask an AI agent inside a ticket

Ask Kai Copilot or one of your own agents for a draft, an investigation or a lookup from the ticket sidebar, without the customer seeing any of it.

You don't have to leave a conversation to use an AI agent on it. The ticket sidebar has an **AI agents** tab next to **Details**, where you can ask an agent for a draft, an investigation or a lookup with the whole thread already in front of it. This works with Kai and with the custom agents you've built, on Team and up.

### Ask an agent

1.  In the **Inbox**, open the conversation.
    
2.  In the ticket sidebar, click the **AI agents** tab. Press **D** to switch between **Details** and **AI agents**. The tab opens on the agent that was last active on this ticket, or on **Kai Copilot** if none has been yet.
    
3.  To ask a different agent, click its avatar in the row at the top of the tab, or click **+** and pick one. **+** also lists Kai Support, and **Start new coding session** starts Kai Code on the ticket.
    
4.  Type your request in the **Message …** box at the bottom, named after the agent (for example **Message Kai Copilot…**), and send it. The agent answers in the tab, where your team can see it.
    

![Ticket copilot screen in the Pied Piper demo project.](https://staticfiles.gleap.io/p613b5dd730aed737108f87ab/PVdrM3lfkYPQdDF0y5SUsgsavNyLnuBcywlAEyGHb6Vc6Yrf9xNZRW2fu6CFpeFluPbydL9oyhS.png)

The row at the top shows the agents that have already worked on this ticket. The others are under **+**.

> **Info:** Nothing you send this way reaches the customer. The exchange stays in the sidebar, apart from the composer below the conversation, which only has **Reply** and **Note**.

### What it's good for

-   Drafting a reply you then edit, which is faster than starting from an empty box on a long thread.
    
-   Looking something up in a system the agent has a tool for, without switching tabs.
    
-   Asking a specialist agent about a case outside your area, such as a billing question landing with a technical teammate.
    
-   Starting a code investigation on a bug report, so the thread carries the finding.
    

### Using a draft

Ask for a draft and the agent writes it into your reply composer, so you don't copy it by hand. It arrives wrapped in the greeting and closing your project uses, so it reads as if your team wrote it, with names filled in.

Read it before sending. A draft is confident by construction; whether it's right depends on the content it drew on, and you're the one who knows this customer.

### When the agent asks you something

It works the other way round too. An agent that hits something it can't decide stops and asks. The **AI agents** tab then shows a count. The ticket is marked unread until someone answers, and the unified inbox lists it under **Needs you**. A run waiting on a question is a customer waiting too, so check unread tickets daily if you run agents.

### Open Kai Copilot from anywhere

Kai Copilot also has its own place in the main navigation. Use its chat for work across Gleap; use the ticket’s AI area when the request is about that conversation. [Get started with Kai Copilot](https://help.gleap.ai/en/articles/16751999-get-started-with-kai-copilot.md) explains its chats, routines and artifacts.

### Related

-   [Filter the inbox and save your own views](https://help.gleap.ai/en/articles/297-filter-the-inbox-and-save-your-own-views.md)
    
-   [Leave internal notes and mention teammates](https://help.gleap.ai/en/articles/302-leave-internal-notes-and-mention-teammates.md)
    
-   [Build your first agent](https://help.gleap.ai/en/articles/247-build-your-first-agent.md)
