> For the complete documentation index, see [llms.txt](https://documents.cxgenie.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documents.cxgenie.ai/getting-started/knowledge-base/escalate-to-a-human-agent.md).

# Escalate to a Human Agent

* When your bot cannot answer the question, you can decide the next step for your bot - just type your prompt.
* Access to the Workflow -> Create Workflow -> Choose Trigger Condition ->  Tick "Trigger by action"  -> Choose "When the bot does not know the answer"

<figure><img src="/files/h3gDB5ivahP5l1whGilr" alt=""><figcaption></figcaption></figure>

* Click on the component -> Choose "Select condition" -> Choose "At least one human agent is online", you can find how to set online/offline [here](https://documents.cxgenie.ai/getting-started/knowledge-base/pages/rLeo88Wo0zH5zftJa0lI#id-2.-online-offline-status).&#x20;

<figure><img src="/files/UnRcf2HSJFSOQFnVbd39" alt=""><figcaption></figcaption></figure>

* Choose the action for the condition if true or false (online or offline)

<figure><img src="/files/EvPtMgG3URQUyxjmTMUx" alt=""><figcaption></figcaption></figure>

* The flow will work: if at least one human agent is online, they will be notified. If not, send a ticket to the customer to fill out the information.&#x20;
* See more @ [Notify agent](/bots/workflow/workflow-components-1/notify-agent.md) & [Create Ticket(s)](/ticket-system-add-on/create-ticket-s.md).
