> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/convert/chatbot/chatbot-common-questions/chatbot-transferring-to-a-human-agent-with-chatgpt.md).

# Chatbot - Transferring to a human agent with ChatGPT

## Setting up the chatbot with the GPT model

To illustrate, a chatbot was developed with the following configuration:

1. An initial message is sent to the lead;
2. The GPT Model is triggered, observing and responding to the lead based on its [training](/en/topics/artificial-intelligence/ai-agents/legacy-ai-agents-notice/chatgpt-models/chatgpt-models-website-and-text.md). If the early exit condition is identified, the agent will be terminated, and the flow will proceed to the negative exit located below the block;
3. The lead will receive a message informing that the service will be transferred;
4. The service will then be transferred through an action, and can be directed to a specific user or someone within the desired department.

<figure><img src="/files/446cf28ea7a10863327cd96a3870d4d2bf0e74a2" alt=""><figcaption><p><em>Chatbot configuration.</em></p></figcaption></figure>

### Example of interaction with the AI agent

<figure><img src="/files/a908e27b69aa5059cb14e40cc25fe2a2a9179718" alt=""><figcaption><p><em>Interaction example.</em></p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sprinthub.com/en/topics/convert/chatbot/chatbot-common-questions/chatbot-transferring-to-a-human-agent-with-chatgpt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
