> 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/translate-a-post-to-any-language-and-publish-it-with-a-comment.md).

# Translate a post to any language and publish it with a comment

In this tutorial, we will use ChainJetBot to translate a post into any language and publish it as a comment. We will be using ChainJet's Lens Protocol and OpenAI integrations.&#x20;

To start, log in to [ChainJet](https://chainjet.io) with your wallet and click on "Create Workflow". Next, select the Lens Protocol integration and trigger "New Mention to @ChainJetBot.lens". If this is your first time using this integration, you will need to connect your Lens account. In the "Mention starts with" field, type "translate to".&#x20;

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

Next, we need to select the actions. Click on the "+" symbol shown below the trigger to do so. Once again, select the Lens Protocol integration and choose "Get Publication". Fill in the "Publication ID" field by selecting "Main post" from the drop-down menu.&#x20;

<figure><img src="/files/6x8qKttlshVKpoZAPrdV" alt=""><figcaption></figcaption></figure>

The next action we need to select is the OpenAI integration. Click on the "+" symbol below the previous action and choose "Send Prompt".

* Fill in the "Prompt" field by typing "Translate to" and then selecting "Mention" from the Mention to ChainJetBot drop-down menu and "Metadata.Content" from the Get Publication options.&#x20;

*\*If this is your first time using the OpenAI integration, you will need to connect your account with the* [*API Key*](https://docs.chainjet.io/integrations/openai)*.*&#x20;

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

Finally, we need to add a last action by selecting the "+" symbol under the previous action. Select Lens Protocol and the action "Create Comment".&#x20;

* Fill in the "Publication ID" field by selecting the "ID" option from the Get Publication drop-down menu.&#x20;
* Fill in the Comment Content field by choosing the "Text" option from the available "Send Prompt" options.&#x20;

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

Your workflow is now ready to use! To translate a Lens post, make a comment using the following format: @ChainJetBot.lens translate to \[language]. A comment will be published below with the post in the selected language.

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

<figure><img src="/files/XHZBwsxdbPcvfWaERhhJ" 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/translate-a-post-to-any-language-and-publish-it-with-a-comment.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.
