OpenAI Telegram Group VA
Hey everyone,
I'm trying to automate a task tracking process in Telegram through an OpenAI Assistant.
I would love it if someone can help me to enable checking past messages and extracting relevant information from a Telegram group. I have been able to add the bot, have it respond the group chat, connected it to Assistant and made it provide a response. However, without the context from the group I haven't been able to get any results. Thanks in advance for any tips and guidance.
I would love it if someone can help me to enable checking past messages and extracting relevant information from a Telegram group. I have been able to add the bot, have it respond the group chat, connected it to Assistant and made it provide a response. However, without the context from the group I haven't been able to get any results. Thanks in advance for any tips and guidance.
2 Replies
AI Response
It appears that there are no pre-built templates specifically named "Save Telegram Messages" or "Retrieve and Respond" in the workflow templates database. However, I can guide you through creating these workflows manually.
Save Messages Workflow
1. Create a New Workflow:
Add nodes to capture incoming messages and store them in the BuildShip database.
2. Use the Telegram Bot Trigger:
Set up the trigger to capture messages from a Telegram group.
3. Add a Node to Save to Database:
Use a
Create Document
node to save each message in a specified collection (e.g., TelegramMessages
).
Example Flow:
- Trigger: Telegram Bot Trigger
- Process: Store message data
- Node: Create Document
(Collection: TelegramMessages
)
Retrieve and Respond Workflow
1. Create a New Workflow:
Configure this workflow to query past messages and formulate a response.
2. Use the Telegram Bot Trigger:
Set up the trigger to capture messages from the Telegram group.
3. Query the Past Messages:
Add a Collection Query
node to fetch past messages from the TelegramMessages
collection.
4. Combine Messages and Query:
Concatenate the retrieved messages with the new query.
5. OpenAI Assistant Node:
Pass the combined input to the OpenAI Assistant node to generate a response.
6. Respond to Telegram:
Use a Send Message
node to send the assistant’s response back to the Telegram group.
Example Flow:
- Trigger: Telegram Bot Trigger
- Process:
- Node: Collection Query
(Fetch past messages from TelegramMessages
)
- Node: OpenAI Assistant (Generate response with past messages context)
- Node: Send Message
(Send response back to Telegram)
To set up these workflows, you can follow detailed documentation and guides provided by BuildShip, such as:
- Building a Telegram Bot
- Using BuildShip Database Nodes
- Integrating with OpenAI Assistant
I recommend starting with the detailed guides and building out the workflows step-by-step on the BuildShip platform. If you need further assistance at any point, feel free to reach out again.
BuildShip AI Support
@NUTRI Team Tools, was the above workflow creation steps provide by AI bot helpful? Did you tried implementing and checked out the resources?