Create your first workflow
ASCN.AI is a service designed to deliver results to clients as quickly as possible. This is our team's principle, which we've built into our product. Therefore, getting started with ASCN.AI NoCode takes just 10 minutes and 17 clicks. And unlike many others, even the simplest workflow with us delivers real benefits from the very first launch.
Written By Team ASCN.AI
Last updated 2 months ago
This workflow turns your Telegram bot into a smart content assistant: it takes a user’s message, sends it to an AI (ChatGPT) that generates engaging, well-structured, and readable social media text, and then automatically sends it back to the user. It enables fast and high-quality post creation without a copywriter, saving time and resources. The system can also be expanded to include auto-posting, image generation, and comment management. In short, it provides a full-featured digital assistant for managing your social media on autopilot.
Step 1: Creating a Workflow
First, you need to log in to your ASCN.AI account (if you don't have an account, you can register here)
Go to the Workflows tab
Click "Create New"
Enter a title and click "Create Workflow"
Step 2: Add a trigger
What is a trigger and why is it needed? You can find out Part 2: Nodes, Trigger, Logic, AI Agent
Now let's add a start block that will be called when the user writes to our Telegram bot.
Click "Add plugin"
Select from the block menu: Triggers → Telegram → Telegram Polling Trigger
Open the block and enter the parameters:
BotToken: Here you need to insert your bot's token, you can get it in @BotFather
UpdateType: Select “Message” to accept all messages from users.
Click Apply to save the changes
Step 3: Adding an AI Agent to generate a response to the user
What is a AI Agent and why is it needed? You can find out Part 2: Nodes, Trigger, Logic, AI Agent
Now let's add some brains to our workflow. We'll use AI agents for this. For a quick example, we'll use free tokens from OpenAI (ChatGPT)
Click "+"
Select from the block menu: AI Agents → Agents Prompt
Open the block and enter the parameters:
UserPrompt: Here's where you need to insert our AI prompt. We recommend using a ready-made version:
= Create a text post for social media on the topic {{$json.update.message.text}} so that it's memorable and engaging. It should also be relevant and contain useful information.System: Here we enter the parameters for our AI: its role, mission, and refinements to the main prompt. Our version:
You're a professional copywriter with over 30 years of experience in social media. Your mission is to write interesting and engaging texts for posts. You source information only from trusted sources and use modern writing techniques. Your posts are typically 10-15 sentences long. Also, format it with emojis and paragraphs for better readability.API Token: Paste your OpenAI (ChatGPT) API Token here. You can get it on the official OpenAI platform.
Temperature: Set to 1. Higher temperature means more creativity (max 1), while lower value means the driest data feed (min 0)
Click Apply to save the changes
Step 4: Creating a bot response for the user
All that's left is to return our AI response back to the user. Let's add the final block.
Click "+"
Select from the block menu: Tools → Telegram → Telegram sendMessage
Open the block and enter the parameters:
BotToken: We insert the same token as in the first block
Chat ID: Here we insert a command that takes data from the user (who wrote to the bot) and responds to the same user
={{$node['TelegramBot.Polling_1'].json.update.message.chat.id}}Text: We insert our AI's response here.
={{$json.text}}Click Apply to save the changes
Step 5: Saving, running and testing
AI agent is ready. Now let's save it, launch it, and test the Telegram bot.
Click "Save"
Flip the switch and activate the workflow
Result
We've got not just AI, but an AI agent that generates text posts for social media on request. This can replace a full-time copywriter on your team or save hours on posting. By adding other modules, you can implement auto-posting to all social networks, image generation, comment management, and more.