> For the complete documentation index, see [llms.txt](https://docs.hablla.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hablla.com/hablla-docs-en/automation-flows/all-components/hablla/people/add-tags.md). Agents can also search and read this documentation through its [MCP server](https://docs.hablla.com/~gitbook/mcp).

# Add Tags

With this operation, the automation can assign tags to a person's record, helping to classify contacts and create strategic segments.

The Add Tags operation allows you to apply one or more labels (tags) to a person record. Tags are flexible markers that help categorize, segment, and filter your contacts based on interests, behaviors, source, or any other custom criterion.

This action is extremely useful for dynamically enriching a contact's profile. For example, you can add a "Interest-Product-X" tag when a lead visits a specific page, or "Satisfied-Customer" after a positive review.

The operation adds the new tags to the person's tag list, keeping the ones that already existed.

#### How to Configure

1. In Hablla Studio, add the "People" block to your automation flow.
2. In the "Operation" field, select the "Add Tags" option.
3. In the "Person ID" field (`personId`), enter the identifier of the contact who will receive the tags.
4. In the "Tags" field, select or enter the tags you want to apply.

### Parameters

| Field     | Type         | Required? | Description                                               |
| --------- | ------------ | --------- | --------------------------------------------------------- |
| Person ID | Text         | ✅ Yes     | The unique ID of the person (contact) who will be tagged. |
| Tags      | List of Tags | ✅ Yes     | One or more tags to be added to the contact.              |

### Structure (Using JSON)

The JSON request body must contain an array called `tags` with the tag ID(s) or name(s) to be added.

JSON

```
{
  "tags": [
    "tag_id_or_name_1",
    "tag_id_or_name_2"
  ]
}
```

***

### 🚀 Example Use Case

Objective: When a lead downloads an e-book about "Digital Marketing", add the "Interest-Marketing" tag to their profile.

1. Create a flow that starts with a Webhook trigger that receives the e-book download form data (including the lead's email).
2. Use the "Find Person by Email" operation to find the `personId` of the lead.
3. If the person is found, add the "People" block with the "Add Tags" operation.
4. In the "Person ID" field, enter the ID variable found in the previous step (`{{steps.2.result.id}}`).
5. In the "Tags" field, select the "Interest-Marketing" tag.

With this automation, you segment your contacts based on their interests automatically, allowing future nurturing campaigns to be much more targeted and effective.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hablla.com/hablla-docs-en/automation-flows/all-components/hablla/people/add-tags.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
