> 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-tags.md).

# Manage Tags

The Manage tags tool lets your AI agent add, change or remove tags on a contact while it chats.

The Manage tags tool lets your AI agent add, change or remove tags on a contact while it chats. 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 tags tool can do

| Action     | What it does                                     |
| ---------- | ------------------------------------------------ |
| Assign tag | Adds a tag to the contact.                       |
| Update tag | Replaces a tag the contact has with another one. |
| Remove tag | Takes a tag off the contact.                     |

The agent uses the tags you created under More → Tags.

***

### Steps

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

![Find Manage tags in the Add tools window](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/6HeuYI8nBk1UKhRIlrCp/images/manage-tags-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 tags?", 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 tags](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/oINf5b3f6y6MYBDZT2Xn/images/manage-tags-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 tags to label contacts as you chat with them. Use only the tags created under More → Tags. Never create a new tag.
>
> Add tag: When a customer shows something a tag describes, add that tag. For example, add "interested" when they ask about pricing. Add only tags that clearly fit.
>
> Change tag: When a tag is no longer right, swap it for the one that fits now. For example, change "interested" to "customer" after they pay. Check which tags the contact has first.
>
> Remove tag: When a tag no longer applies. For example, remove "new" once the customer replies. Never remove a tag you did not add unless the customer's situation clearly changed.
>
> Rules: Do not tell the customer about tags unless they ask. If the tool gives an error, do not tell the customer. Carry on helping them. Never say a tag was added, changed or removed 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.
