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

# Add Tags

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

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
