How to use @ChainJetBot.lens

Run any workflow by simply mentioning ChainJetBot in a comment on Lens

In this tutorial, I will show you some examples of how to use @ChainJetBot.lens.

Lens Protocol is a decentralized social network that has been overgrowing lately. With ChainJet, you can automate hundreds of tasks within Lens and now activate a workflow and perform an action by simply mentioning ChainJetBot.lens in a comment within a post.

You can, for example, add a user to your lens list, translate to any language and post it as a post or comment, send a post by DM, or share a post on a Discord server.

OK, let's look at some tutorials with a few examples...

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.

To start, log in to ChainJet 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".

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.

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.

*If this is your first time using the OpenAI integration, you will need to connect your account with the API Key.

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

  • Fill in the "Publication ID" field by selecting the "ID" option from the Get Publication drop-down menu.

  • Fill in the Comment Content field by choosing the "Text" option from the available "Send Prompt" options.

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.

Send a post by DM

In this tutorial, we'll show you how to send a post by DM to any Lens user with @ChainJetBot with just a comment.

Here's how to do it:

  • Log in to ChainJet with your wallet. Once you're in your dashboard, click on "Create Workflow".

  • Add a trigger, click on "Add Trigger" and select the Lens Protocol integration. Choose the trigger "New Mention to @ChainJetBot.lens". If this is your first time using the integration, you'll need to connect your Lens profile. Then, enter the keyword or phrase that you want to activate your workflow. In this case, we'll use "dm".

  • Add an action, click on the "+" button below the trigger. Select the Lens Protocol integration and choose the "Get Publication" action. Fill in the "Publication ID" field and select "Main Post" from the drop-down menu.

  • Add the last action, click on the "+" button under the Lens action. Select the XMTP integration, connect your account, and choose "Send a message to a Lens handle".

  • Complete two fields in this action. Firstly, select "Mention" from the drop-down menu for the Lens Handle field. This will allow you to take the handle of the Lens user you write in the comment. Secondly, fill in the message field with the information you want to send by direct message. In this example, we'll use the username and content of the post. To do this, select "Handle" and "Metadata.Content" from the drop-down menu inside the "Get Publication" action.

That's it! Your workflow is ready. Now, comment on a post in Lens Protocol as follows: "@ChainJetBot dm @ChainJet.lens" (you can replace "@ChainJet.lens" with the username of the Lens user you want to send the post to).

Add a user to a Lens list

In this tutorial, we will show you how to use @ChainJetBot.lens to add a user to a Lens list simply by commenting on a post.

  • Login on ChainJet 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.

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

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.

Share post on Discord

Here's how to do it:

  • Login on ChainJet with your wallet. Once you're in your dashboard, click on "Create Workflow''.

  • Click on "Add a trigger", then select the Lens Protocol Integration, and choose "New Mention to @ChainJetBot.lens".

  • Connect your Lens account and specify the word or phrase that should activate the workflow. In this case, we'll use "Discord".

  • Add an action, click on the "+" button below the trigger. Select the Lens Protocol integration and choose "Get Publication" action. Then, fill in the "Publication ID" field and select "Main Post" from the drop-down menu.

  • Finally, add the last action, click on the "+" button under the Lens action. Select the Discord integration and choose "Send a Message". (If it's your first time using this integration, you'll need to grant authorization first.)

  • Select the channel where you want the Discord bot to publish the message and fill in the "Message Content" field. In this example, we'll choose "Profile.Handle" and "Metadata.Content" from the drop-down menu of the "Get Publication" action. This will show the author of the post and the content in your Discord server.

This is it, your workflow is ready! Now comment on the Lens post you want to share on your Discord: @ChainJetBot Discord.

Subscribe to ChainJet.io
Receive the latest updates directly to your inbox.
Mint this entry as an NFT to add it to your collection.
Verification
This entry has been permanently stored onchain and signed by its creator.