How to Make a Telegram Bot with ChatGPT(OpenAI) with No-Code

How to Make a Telegram Bot with ChatGPT(OpenAI)
Telegram
·
3/30/2023
·
3 min. read

In this article

If you want to set up a Telegram bot that works seamlessly with ChatGPT, we've got you covered. Our solution allows you to get up and running in no time, with minimal configuration required. Simply follow the link provided below, and we'll guide you through the process step-by-step. It couldn't be easier!

You can also watch the video instruction on our YouTube channel

Learn how to build a Telegram bot with ChatGPT in just 3 minutes

The bot uses API requests to interact with Telegram and OpenAI. You don't have to write a single line of code to send requests; Albato will do that for you! Just choose from pre-made blocks to create the scenario you need and start integration. If you want to create a scenario for another app or system, Albato can help without requiring any programming skills.

Option 1. Use the Solution.

Time to create: 2-5 minutes

We have prepared a solution that consists of three automations.

1.png

How to install the Solution

The solution can be installed via the link or you can go to the Solution section in your Albato account.

How to set up the Solution

First, you need to create a Telegram bot. It's a quick and free process that doesn't require much skill. All you need to do is visit https://t.me/BotFather and send the command /newbot. From there, you can set the bot's name and description. Once the bot is created, you'll receive an API token that you can easily copy. (For more detailed instructions, check out this helpful link.)

Next, go to OpenAI - a neural network which will receive our text and commands. Choose "API" in the menu and sign up. After registration, you'll get a $18 credit, which should be enough to get started. To obtain the API token (password to connect to the API), click on the "Personal" tab in the top right corner. From the drop-down list, select "API-keys" and copy the key. Then, paste it into the OpenAI connection settings in Albato. (For more detailed instructions, check out this helpful link.)

The bot is ready! Automation has been set up according to the template, so you can use the bot or customize it a bit before launching. For example:

  • In scenario 3, set up a welcome message, explaining how the bot works (AI, followed by text; in our example - AI, hello, examples of marketing automation).
  • In scenarios 2 and 3, configure the fields in the OpenAI step, specifying the Max tokens (default is 2000), and we'll cover the other OpenAI fields below.

If you don't have an account with OpenAI, there's a special tool in Albato called AlbatoAI that lets you set up similar integrations with Telegram bots. Join our Facebook community, share your thoughts, and our team will respond to help you build your customized automations!

If you're interested, check out the guide on how to build a Telegram bot that can set tasks and track statuses in Bitrix24 CRM.

Option 2. Use the Automation Builder

Go to the Apps section in you Albato account. Click on the Add a connection button. Choose Telegram and OpenAI in the list and connect the apps to Albato. To connect the apps, you will need the tokens that you copied earlier.

2023-03-24_10-58-59.png

Create your bot by integrating the apps you need.

UPD: as of 02/05/2024 the partner has been renamed to Telegram.

2023-03-24_11-04-47.png

Use triggers in the form of incoming Telegram messages that will be sent to your bot. The next step is to send the received message to OpenAI. After receiving the response, return it to Telegram as well.

FB lead ad (4).png

In the OpenAI settings, you can choose: the neural model (depending on the command), the number of tokens in response, and "creativity". You can read more about the parameters on the OpenAI website in the Examples and Documentation section.

Untitled.png

To make sure the bot follows our commands, add "Filter" to the automations.

2023-03-24_11-29-41.png

What other parameters can be configured?

temperature: this is a parameter that regulates the creativity of responses.  Values close to 1 will give the model more risk/creativity. And values close to 0 will generate well-defined responses.

max_token: the maximum number of tokens to generate at completion (here you can see the tokenizer that OpenAI uses)

💡 Token is a part of a word that is used for natural language processing. 1 token is about 4 characters or 0.75 words. You can read more about tokens in the article — What are tokens and how to count them. And then find out about the plans.

number of results: the number of response options to be generated for each input message.

The main difference from the previous models is the Messages object where we have roles that we define in advance.

Due to this, the content (that is, the context of the conversation itself and the entire dialogue) can be built both from a single message and from remembering previous messages.

5.png

Read this article for more information on OpenAI (ChatGPT) integration options.

You can create a scenario using a neural network or other apps of your choice. The possibilities are endless, and we encourage you to unleash your creativity!

Alternatively, if you'd like our team to help you implement a custom scenario, simply reach out to us via our help chat. We're always happy to assist, and our services are completely free of charge.


Telegram
OpenAI

Join our newsletter

Hand-picked content and zero spam!

Related articles

Show more
Best AI Automations with Albato: ChatGPT, Claude, Gemini
10 min. read

Best AI Automations with Albato: ChatGPT, Claude, Gemini

In this article, you will find some examples of powerful AI automations with ChatGPT, Claude, and other LLMs you can set up with Albato to boost productivity and streamline your business processes effortlessly.

Grok 4, GPT-5, Gemini, and Claude Opus 4.1―All the Recent Updates
13 min. read

Grok 4, GPT-5, Gemini, and Claude Opus 4.1―All the Recent Updates

In this article, you will find an in-depth comparison of Grok, ChatGPT, Gemini, and Claude. Discover their strengths, weaknesses, and which AI chatbot fits your business needs best.

How to Automate Blog Creation from Google Sheets Using OpenAI
8 min. read

How to Automate Blog Creation from Google Sheets Using OpenAI

With this Solution, every new row in a designated Google Sheet triggers a series of actions to create SEO-friendly blog content, generate images, and notify your team—without writing a single line of code.

What Tools To Connect to OpenAI with Albato
3 min. read

What Tools To Connect to OpenAI with Albato

In this article, you will learn what tools you can connect to ChatGPT(Open AI) with Albato to set up automated workflows for different use cases.

How AI Is Transforming SaaS: Webinar Insights
7 min. read

How AI Is Transforming SaaS: Webinar Insights

In this post, you will learn about the top 5 ways how artificial intelligence (AI), agents, and MCP are transforming the SaaS industry.

Choosing the Right Tool: A Comparison of Top GenAI Models
21 min. read

Choosing the Right Tool: A Comparison of Top GenAI Models

In this article, you will find the comparison of top genAI models, including ChatGPT, Gemini, Claude, and others with pros, cons, and use cases.

How to Set up and Track Tasks with Telegram Bot in Bitrix24
8 min. read

How to Set up and Track Tasks with Telegram Bot in Bitrix24

In this article, you will learn how to integrate a Telegram bot with Bitrix24 to set up and manage tasks efficiently. We provide step-by-step instructions to automate task tracking and boost productivity.

Best AI Tools 2025: Top Artificial Intelligence Apps for Work & Productivity
Frase
50 min. read

Best AI Tools 2025: Top Artificial Intelligence Apps for Work & Productivity

In this article, you will learn about the best AI tools in 2025 for business, meetings, SEO, writing, and more to boost productivity and save time.

How Can Automation Software Reduce Costs and Improve Operations in Small Businesses
3 min. read

How Can Automation Software Reduce Costs and Improve Operations in Small Businesses

In this article, you will learn how automation software can help small businesses save costs, improve operations, and create scalable workflows without increasing headcount.

How to Document All Your Automations with AI
3 min. read

How to Document All Your Automations with AI

In this article, you’ll learn how to document your workflow automations using AI easily, and how a platform like Albato helps simplify the process from end to end.

Best AI Prompts To Generate Albato Integration Ideas
3 min. read

Best AI Prompts To Generate Albato Integration Ideas

In this article, you’ll learn how to craft effective AI prompts that generate useful Albato integration ideas—and how to turn those ideas into real workflows without writing a line of code.

How to Auto-Reply to Customer Emails Using AI and Albato
3 min. read

How to Auto-Reply to Customer Emails Using AI and Albato

In this article, you'll learn how to create AI-powered email auto-replies using Albato, and how to build a smart workflow that reads, processes, and responds to emails automatically.