teaser
Albato Embedded, the AI-first iPaaS, is officially live on Product Hunt!Support our launchright

Connect ChatGPT (OpenAI) to Albato and integrate with Telegram

ChatGPT (OpenAI): Automate with Albato
OpenAI
·
12/28/2022
·
5 min. read

OpenAI is an AI research and deployment company focused on creating artificial general intelligence (AGI). OpenAI develops various AI models for different applications, from language processing to coding and beyond.

ChatGPT is one of the flagship products developed by OpenAI. While OpenAI has multiple AI models for various purposes (e.g., DALL-E for image generation, Whisper for speech recognition), ChatGPT is specifically designed to understand and generate human-like text.

To connect ChatGPT (OpenAI) to Albato, you need an active account on the OpenAI API platform. You’ll find the step-by-step connection guide below.

 

Available AI models

To tailor OpenAI to your specific needs, select a model and add the relevant directives. Each model is designed for different tasks, so it's important to choose the right one depending on your requirements.

GPT-4o: for everyday tasks

Great for streamlining routine workflows with real-time responses.

Example prompts:

  • Extract key insights from this call transcript.
  • Summarize this investor memo.
  • Rewrite this cold outreach message to sound more natural.
 

GPT-4.5: for creative tasks

Perfect for generating engaging, creative content with a personal touch.

Example prompts:

  • Write a LinkedIn post for a product launch.
  • Create a press release for a new feature.
 

OpenAI o4-mini: for quick technical answers

Ideal for solving coding, data analysis, and STEM-related queries quickly.

Example prompts:

  • Convert this dataframe into a JSON file.
  • Summarize this research paper in three key points.
 

OpenAI o4-mini-high: for deeper technical work

Best for advanced analysis and technical depth in complex tasks.

Example prompts:

  • Analyze this code block for performance issues.
  • Generate a complex MongoDB query for data analysis.
 

OpenAI o3: the strategic thinker

Handles multi-layered analysis, planning, and data-driven insights for strategic decisions.

Example prompts:

  • Create a go-to-market plan for our AI SaaS.
  • Model the impact of a price increase on churn and revenue.
 

Davinci: for complex tasks

Great for handling complex problem-solving, creative tasks, and advanced writing.

Example prompts:

  • Write a detailed essay on the future of artificial intelligence.
  • Develop a business strategy for a new startup.
 

Whisper: for speech-to-text and multilingual translation

Ideal for transcribing speech to text and translating across multiple languages.

Example prompts:

  • Transcribe this meeting’s audio into text.
  • Translate this document into Spanish, maintaining the context.

You can find more details in the following resources:

 

OpenAI API pricing

The OpenAI API runs a pay-as-you-go pricing structure. This means that you get charged based on the content type, length, or task that you pass on to an AI model, as well as the output it generates.

Pricing for text generation (per million tokens ≈ 750,000 words):

  • GPT-4o: $5 input / $15 output
  • GPT-3.5 Turbo: $0.50 input / $1.50 output

Learn more about pricing on the OpenAI pricing page.

 

How to Connect ChatGPT (OpenAI) to Albato

Connect ChatGPT (OpenAI) to Albato and set up integrations with other apps to automate client responses, generate email newsletters, and streamline the creation of marketing and product descriptions.

  1. Go to the Apps section in your Albato account and click the Add a connection button.

zenrows2.png

  1. Search for ChatGPT (OpenAI), select it, and click the Add a connection button.

chatgpt1.png

  1. Come up with a name for the connection and enter the API key.

chatgpt2.png

  1. To get the API key, go to your personal OpenAI account. If you haven't already, create an account on the OpenAI platform.

  2. Select the API keys section and click the Create new secret key button.

chatgpt3.png

  1. Name your key and click the Create secret key button.

chatgpt4.png

  1. Copy the key and return to your Albato account. Paste the key into the API token field and click Continue.

chatgpt5.png

Important: You won't be able to use the API unless you add credits.

  1. Click the icon in the top-right to open Settings.

chatgpt7.png

  1. In the left menu, click Billing and add a payment method.

chatgpt8.png

Your connection is ready, and you can now set up your automations. If you have any issues, get in touch with support via the live chat on our website.

 

How to set up automations

In this example, we will set up the automation with Telegram and OpenAI. Let’s use Telegram bot as an app to access OpenAI.

To get started, you need to connect both apps to Albato.

  • How to connect OpenAI is described above.
  • How to connect Telegram is described in this article.

Open the Automations section. Click the New button.

2022-12-27_14-54-02.png

In the Automation builder select the first step and add a trigger to start the automation.

💡 Triggers are the events that start automations. When the selected event happens, Albato will perform the selected actions. Triggers can run in real-time or by schedule.

Set up the first step:

  • App which sends the data — Telegram (private)
  • Event — Incoming message
  • Connection — your Telegram connection created earlier.

Click the Add a trigger button.

2022-12-27_15-03-05.png

In this window, you can specify the allowed commands — those by which the bot will know that you need to access OpenAI. For example, /code. This is useful if you want to add the bot to the work chat where you are communicating with colleagues.

You may skip this step and add commands later, if necessary. To do this, you will need to click on the settings icon of the Telegram (private) trigger in the Automation builder section. In other articles, we will show you how to work with commands when setting up Telegram - OpenAI automation.

2022-12-27_15-07-29.png

Set up the second step and add an action.

💡 Actions is what Albato performs when triggers occur. Actions allow you to send data to other apps and systems.

Fill in the fields with the following information:

  • App which receives data — OpenAI
  • Action — Get phrase completion
  • Connection — your OpenAI connection created earlier.

Click the Add an action button.

Снимок экрана 2022-12-27 в 13.35.06.png

On the next step, you need to configure the fields.

Select the model, specify the variable from the previous step in the Prompt field, and fill in other fields according to your needs. You can follow the example below for testing.

Click the Save button.

Снимок экрана 2022-12-27 в 13.37.05.png

The next step is to choose another action which will send a response from OpenAI to your Telegram bot.

Click on the + icon and set up this step:

  • App which sends the data — Telegram (private)
  • Event — Reply to message
  • Connection — your Telegram connection created earlier.

Click the Add an action button and fill in the fields. Then, click the Save button.

Снимок экрана 2022-12-27 в 13.38.54.png

The automation is ready! You can start and test it now.

Open your Telegram bot and form a request. For example, you can ask to write a description of Facebook and Google Sheets integration using the following words: integration, API. You can also ask to translate it into English, Portuguese, and Spanish.

Bot.png

Modes and commands of the bot

The bot has 3 special commands and "Free communication mode". Within these commands, the bot can be given various tasks in the form of messages. The commands are needed for the bot to be able to choose the right model of the neural network and improve the quality of the result. The bot receives messages from you, sends them through the API to OpenAI and, after receiving the result, returns them to you as a response message. Responses may come with a slight delay, depending on the complexity of the task or the number of characters sent. All commands except "Free mode" must be specified as the first word in your messages.

⚠️ Any text you send is moderated by OpenAI, this process is almost instantaneous, but make sure that your messages do not contain hateful content , content that promotes, encourages, or depicts acts of self-harm, such as suicide, content that promotes or glorifies violence or celebrates the suffering or humiliation

Command /story

This command generates a continuation of your text and a picture for it using artificial intelligence. Along with the command you need to specify the text or the beginning of the text or the main theses to "continue". The command /story is specified at the beginning of the message. In the reply message from the bot you will get the generated text and a picture to it. The more input you give, the better the result will be. The command is suitable for generating content for articles, creative descriptions or character descriptions.

Example 1

Sending a message:

/story A marketer hadn't slept in two days. He needed to set up end-to-end analytics, but...

Get a response from the bot:

The marketer did not sleep for two days. He needed to set up end-to-end analytics, but had to work out everything precisely down to the smallest detail to make his work as professional as possible. After hours of trying and pain of creating analytical reports, he finally did everything he had planned. All he had to do was analyze the data and build graphs, and the marketer realized that he was able to solve his problem.

Command /code

The command is designed to work with tasks that are related to code. For example you can translate JavaScript to Python, find errors in written code or find out the value of a variable. Badly suited, for tasks where you need to work with both text and code. That is, if we need to translate text into HTML or generate an SQL query from text, it is better to use "Free mode". The command /code puts the first word in your message.

Example 1

Sending a message:

/code What value will be in the string field?:

let test = [ "test", "test", "test", 'test2' ]; let string = test.map(el => el + 'OMG')join()

Get a response from the bot:

// response: testOMG,test2OMG

Example 2

Sending a message:

/code

Fix bugs in the below function

import Random a = random.randint(1,12) b = random.randint(1,12) for i in range(10): question = "What is "+a+" x "+b+"? " answer = input(question) if answer = a*b print (Well done!) else: print("No.")

Get a response from the bot:

// response: import random a = random.randint(1,12) b = random.randint(1,12) for i in range(10): question = "What is "+str(a)+" x "+str(b)+"? " answer = input(question) if answer == str(a*b): print ("Well done!") else: print("No.")

Command /image

This command will send the text message to OpenAI and return a picture based on it generated by artificial intelligence. You can use it if you need to get creative with your article, product logo and other graphical content from the text. To use, specify the command /image as the first word in your post.

Example 1

Sending a message:

/image

Create a logo for the company:

  1. The company does maintenance on BMW cars
  2. Premium service.
  3. has no competitors
  4. Associations: panther, tiger
  5. Colors: black, red, blue, gold

Get a response from the bot:

photo_2022-12-21_16.06.18.jpeg

Free communication mode

The most powerful mode. Does not have a specific syntax or command. But the more specific and clear the description of the query, the better the result will be. You can translate text into other languages, generate code from text, clear text from symbols, generate company names or categorize lists. For more accurate work, try to make sure your message begins with the task you want to perform. If the task contains a list, specify it after a colon.

Example 1

Sending a message:

Clear text from HTML:

<p>I'm made on Albato and here are my options:</p>

<ul>

<li>Automation</li>

<li>Integration</li>

</ul>

<b>Join the most popular community!</b>

<a href="https:www.albato.com">Albato</a>

Get a response from the bot:

I'm made on Albato and here are my features:

  • Automation.
  • Integration.

Join our community! Albato - https://albato.com

Example 2

Sending a message:

Send an SQL query to find all customers who have an average receipt of more than 1000 rubles and the date of registration more than November 1, 2022.

Get a response from the bot:

SELECT * FROM customers WHERE AVG(check_total) > 1000 AND registration_date > '2022-11-01';

To see the Quick ChatGPT Setup in action and explore a real-life use case with Trello, head over to our YouTube channel.

Watch the video tutorial for a step-by-step guide on creating an AI assistant in Trello, with which you can generate content ideas directly in Trello. Discover how to integrate Trello with OpenAI and automate workflows without writing a single line of code.

Expand your knowledge and gain practical insights by checking out the video today!


OpenAI

Related articles

Show more
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
OpenAI
50 min. read

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

Best AI tools 2025 for business & work. Top AI assistants for meetings, SEO, writing, coding. Complete guide to boost productivity with artificial intelligence.

What Is Claude AI 4 Sonnet: A Comprehensive Overview
CoPilot AI
10 min. read

What Is Claude AI 4 Sonnet: A Comprehensive Overview

Claude AI by Anthropic: Discover what Claude AI is, whether Claude AI is free, what’s new in Sonnet 3.5, and how it compares to ChatGPT.

The Best Alternative to Zapier: Why Albato Is the Ideal Choice
14 min. read

The Best Alternative to Zapier: Why Albato Is the Ideal Choice

In this article, you will learn the best Zapier alternatives in 2025. Compare features, pricing, and integrations to find the right automation tool for your needs.

Best iPaaS Alternative for Workato Integrations | Albato
Embedded
5 min. read

Best iPaaS Alternative for Workato Integrations | Albato

Comparing Albato and Workato: The Best Alternative iPaaS for Your Integration Needs

Gemini Vs. ChatGPT: Comparing the Top AI Chatbots of 2024
Gemini
5 min. read

Gemini Vs. ChatGPT: Comparing the Top AI Chatbots of 2024

In this article, you will find the comparison of Gemini vs ChatGPT. You will learn about their pros, cons, and best use cases for your business.

Top SEO Practices for 2025
7 min. read

Top SEO Practices for 2025

In this article, you will find the best SEO practices to create high-quality content optimized for the search engines.

How to automate receiving emails from Gmail in Telegram through Albato
Gmail
4 min. read

How to automate receiving emails from Gmail in Telegram through Albato

Today we will tell you about a new way to manage your emails and messages with Gmail and Telegram.

How to integrate ChatGPT with Google Sheets using Albato
Google Sheets
5 min. read

How to integrate ChatGPT with Google Sheets using Albato

Google Spreadsheets is a favorite among our users and for good reason! Many of them spend hours working with spreadsheets, and we're here to help them do it even better!

OpenAI Assistant API: Set up integrations with any app
Telegram
4 min. read

OpenAI Assistant API: Set up integrations with any app

With Albato, you can integrate AI assistants with over 600 apps, plus automate tasks, either with HTTP requests or by using the Albato App Integrator. You can automate lots of tasks, including creating bots in Telegram or online chats, managing data in Google Sheets, and integrating with task trackers and other apps.

AITable.ai and OpenAI: Automate your data workflows
AITable
5 min. read

AITable.ai and OpenAI: Automate your data workflows

AITable.ai and OpenAI integration can benefit data analysts, researchers, developers, and professionals dealing with extensive datasets across various domains and industries.