# 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](https://docs.sprinthub.com/en/topics/artificial-intelligence/ai-agents/legacy-ai-agents-notice/chatgpt-models/chatgpt-models-website-and-text). 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="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2F06FrhQjdXWi9eMWmLU7q%2Fartigo-ia-1.png?alt=media&#x26;token=bb418cbc-69a4-4089-8d29-1602f1d0fb74" alt=""><figcaption><p><em>Chatbot configuration.</em></p></figcaption></figure>

### Example of interaction with the AI agent

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FunE0VGraMlSYe3I1Xr8j%2Fartigo-ia-2.png?alt=media&#x26;token=64568ab7-0866-4f02-b918-7e53943bb5f0" alt=""><figcaption><p><em>Interaction example.</em></p></figcaption></figure>
