SentiAI
  • GET STARTED
    • Introduction
    • Key Concepts
      • Agents
      • Tools
      • Knowledge
    • Core Features
    • Development Roadmap
  • GUIDE
    • Prompt Library
    • Wallet Services
  • Autonomous Tasks
    • Task Instructions
    • Publish
  • FAQ
  • Token
    • Tokenomics
    • S-Point System
    • Airdrop for S-Point Participants
  • OFFICIAL LINKS
    • X
    • Telegram Channel
    • Telegram Group
Powered by GitBook
On this page
  • Overview
  • Setting Up Publishing Channels
  • Publishing Task Results
  • Get a Bot Access Token and Chat ID
  1. Autonomous Tasks

Publish

PreviousTask InstructionsNextFAQ

Last updated 2 months ago

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 .

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 .

Publishing Task Results

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

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

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

  3. Follow the instruction until we get message like so

    Done! Congratulations on your new bot. You will find it at t.me/lynn_note_bot. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you've finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this.
    
    Use this token to access the HTTP API:
    63xxxxxx71:AAFoxxxxn0hwA-2TVSxxxNf4c
    Keep your token secure and store it safely, it can be used by anyone to control your bot.
    
    For a description of the Bot API, see this page: https://core.telegram.org/bots/api
    
  4. 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

    {
      "ok": true,
      "result": [
        {
          "update_id": 83xxxxx35,
          "message": {
            "message_id": 2643,
            "from": {...},
            "chat": {
              "id": 21xxxxx38,
              "first_name": "...",
              "last_name": "...",
              "username": "@username",
              "type": "private"
            },
            "date": 1703062972,
            "text": "/start"
          }
        }
      ]
    }
  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

{
  "ok": true,
  "result": [
    {
      "update_id": 838xxxx36,
      "channel_post": {...},
        "chat": {
          "id": -1001xxxxxx062,
          "title": "....",
          "type": "channel"
        },
        "date": 1703065989,
        "text": "https://api.telegram.org/bot{our_bot_token}/getUpdates"
      }
    }
  ]
}
  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

{
  "ok": true,
  "result": [
    {
      "update_id": 838xxxx36,
      "message": {...},
        "chat": {
          "id": -47xxxxxx79,
          "title": "....",
          "type": "group",
        },
        "date": 1703065989,
        "text": "https://api.telegram.org/bot{our_bot_token}/getUpdates"
      }
    }
  ]
}
  1. The Chat ID is -47xxxxxx79

On the , select the task you want to configure

Open Telegram application then search for

Autonomous Tasks page
@BotFather
Profile page
Instruction