> For the complete documentation index, see [llms.txt](https://help.botpenguin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.botpenguin.com/ai-agents/prompts-and-tools/manage-chat-status.md).

# Manage Chat Status

The Manage Chat Status tool lets your AI agent set, change or clear the status of a conversation.

The Manage Chat Status tool lets your AI agent set, change or clear the status of a conversation. You add it on the Prompt & Tools page, choose which actions the agent may use, and tell the agent when to use it.

***

### Prerequisites

* An AI agent. See Create your first AI Agent.
* Edit access to AI Agents.

***

### Key definitions

| Term               | Meaning                                                               |
| ------------------ | --------------------------------------------------------------------- |
| Tool               | Something your agent can use to take an action.                       |
| Action             | One thing a tool can do. You turn each action on or off with Allowed. |
| Usage instructions | Your words that tell the agent when to use the tool and what to do.   |

***

### What the Manage Chat Status tool can do

| Action | What it does                               |
| ------ | ------------------------------------------ |
| Set    | Gives the chat a status.                   |
| Change | Moves the chat from one status to another. |
| Remove | Clears the status of the chat.             |

The agent uses the statuses you created under More → Custom Status.

***

### Steps

1. Open **Prompt & Tools** under Setup in the AI Agent sidebar. Click **Add tool**. In the Add tools window, find **Manage Chat Status**. You can search for it, or look under Internal tools. Click it.

![Find Manage Chat Status in the Add tools window](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/59xevPneNWGMQJ5uCkdG/images/manage-chat-status-step-1.png)

2. Turn on the actions you want the agent to use. A counter shows how many are allowed. The agent uses only the actions that are allowed. Under "How should the agent use Manage Chat Status?", write when the agent should use the tool and what it should do. This is required.

![Turn on actions and write the usage instructions for Manage Chat Status](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/xDtSsdEWFeLWWrJ4PzQc/images/manage-chat-status-step-2.png)

3. Click **Save changes**. The tool now shows under Connected tools with an Active label. Click **Done** to close the window, then click **Update** to save the page.

***

### Example usage instructions

> Use Manage Chat Status to keep the status of each conversation up to date. Use only the statuses created under More → Custom Status. Never create a new status.
>
> Set status: When a conversation has no status and it clearly fits one, set that status. For example, set "Pending" when you are waiting for the customer to send details.
>
> Change status: When the situation changes, change the status to the one that fits now. For example, change "Pending" to "Resolved" once the customer confirms their issue is fixed. Check the current status first.
>
> Clear status: Only when the conversation no longer needs a status, or the customer starts a new issue in the same chat.
>
> Rules: Do not tell the customer about statuses unless they ask. If the tool gives an error, do not tell the customer. Carry on helping them. Never say a status was set, changed or cleared until the tool confirms it.

Write your own in the same way: say when to use the tool, then what to do.

***

### Change or remove the tool

Under Connected tools, click the gear icon to open the tool's settings again. Click the delete icon to remove it. You are asked to confirm. Deleting removes the tool and its usage instructions from the agent.

***

### Common errors

<details>

<summary>The agent does not use the tool</summary>

Check that the tool shows Active under Connected tools. Check that the action you need is allowed. Make your usage instructions clearer about when to use the tool.

</details>

<details>

<summary>I cannot save the tool</summary>

The usage instructions are required. Fill them in.

</details>

<details>

<summary>What happens if I delete the tool?</summary>

The agent can no longer use it, and its usage instructions are removed. Text about the tool in your prompt stays, so remove it too.

</details>

***

### Support

Still not working? Write to us at <support@botpenguin.com>. We will reach out to you within 24 hours.
