Publish

Overview

Senti allows you to automatically publish your task execution results to different channels, making it easy to share information with your users. Currently, Senti supports publishing to:

  • X (formerly Twitter)

  • Telegram

This guide will walk you through the process of setting up and using these publishing features.

Setting Up Publishing Channels

Before you can publish task results, you need to connect your social media accounts in the Profile pagearrow-up-right.

Adding an X Account

In the "Your X Accounts" section, click "Connect", then complete the authorization process when prompted.

Adding a Telegram Account

In the "Your Telegram Credentials" section, click "Connect", enter the following information:

  • Bot Access Token

  • Chat ID

To get a bot access token and chatID, see the Instruction.

Publishing Task Results

Once you've connected your accounts, you can configure tasks to publish their results automatically.

  • On the Autonomous Tasks pagearrow-up-right, select the task you want to configure

  • In the "Edit Task" modal, find the "Publish" section

  • To publish to X, check the "Publish to X" option, then select which connected X account you want to publish through

  • To publish to Telegram, check the "Publish to Telegram" option, then select which Telegram destination you want to publish to

  • Save your changes

Get a Bot Access Token and Chat ID

Create a Telegram Bot and get a Bot Token

  1. Open Telegram application then search for @BotFatherarrow-up-right

  2. Click Start

  3. Click Menu -> /newbot or type /newbot and hit Send

  4. Follow the instruction until we get message like so

  5. So here is our bot access token 63xxxxxx71:AAFoxxxxn0hwA-2TVSxxxNf4c (make sure we don't share it to anyone).

Get Chat ID for a Private Chat

  1. Search and open our new Telegram bot

  2. Click Start or send a message

  3. Open this URL in a browser https://api.telegram.org/bot{our_bot_token}/getUpdates

    • See we need to prefix our token with a word bot

    • Eg: https://api.telegram.org/bot63xxxxxx71:AAFoxxxxn0hwA-2TVSxxxNf4c/getUpdates

  4. We will see a json like so

  5. The Chat ID is 21xxxxx38

Get Chat ID for a Channel

  1. Invite our Telegram bot to the channel where you want to publish content

  • Promote the bot to administrator status in the channel settings

  • This admin access is required for the bot to successfully post content to your channel

  1. Send the following message to the channel: https://api.telegram.org/bot{our_bot_token}/getUpdates

  2. Click the URL from the channel, we will see a json like

  1. The Chat ID is -1001xxxxxx062

Get Chat ID for a Group Chat

  1. Invite our Telegram bot to the group chat where you want to publish content

  • Promote the bot to administrator status in the group settings

  • This admin access is required for the bot to successfully post content to your channel

  1. Send the following message to the group: https://api.telegram.org/bot{our_bot_token}/getUpdates

  2. Click the URL from the channel, we will see a json like

  1. The Chat ID is -47xxxxxx79

Last updated