> For the complete documentation index, see [llms.txt](https://docs.chainjet.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chainjet.io/integrations/lens/chainjetbot/add-a-user-to-a-lens-list.md).

# Add a user to a Lens list

In this tutorial, we will show you how to use [@ChainJetBot.lens](https://hey.xyz/u/chainjetbot) to add a user to a Lens list simply by commenting on a post.

* Login on [ChainJet](https://chainjet.io) with your wallet. Once you're in your dashboard, click on "Create Workflow".
* The first step is to select a trigger. Click on "Add trigger" and then select the Lens Protocol integration.
* Choose the trigger "New Mention to @ChainJetBot.lens". (If this is your first time using the integration, you will need to connect your Lens profile).
* Next, enter the word or phrase that you want to activate your workflow. In this case, we will use "Add to list".
* The next step is to select an action. Click on the "+" button below the trigger and select the Lens Protocol integration. Choose "Get Publication" and select "ID" from the drop-down menu for the Publication ID field.

<figure><img src="/files/fYrpvDKI5s1cPARGKTjo" alt=""><figcaption></figcaption></figure>

* Finally, select a new action by clicking the "+" button below the previous action. Select the "Lens List" integration and choose "Add a user to a list".
* You will need to complete two fields: Profile ID and List ID. For the Profile ID field, select the profile ID from the drop-down menu that was obtained from the Get Publication action. The List ID can be found in the URL of your Lens List. In our case, it would be <https://lists.inlens.xyz/lists/839997772555157505>, and therefore the ID is 839997772555157505.

<figure><img src="/files/FEbpprqZRXYGNHgX8LBn" alt=""><figcaption></figcaption></figure>

That's it! Your entire workflow is now ready. You can add any profile to your list simply by commenting on a post: @ChainJetBot.lens Add to list.

<figure><img src="/files/aOTVVlmbq0VT0JoRq6hd" alt=""><figcaption></figcaption></figure>

\\


---

# 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.chainjet.io/integrations/lens/chainjetbot/add-a-user-to-a-lens-list.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.
