# ChatGPT (OpenAI) Assistant API: Set up integrations with any app through Albato — Albato Help Center

Source: https://albato.com/wiki/articles/open-ai-assistant-integration

Welcome to Albato Help

Search articles

# ChatGPT (OpenAI) Assistant API: Set up integrations with any app through Albato

Last update:  
22/5/2026 · 4 min read

* * *

IN THIS ARTICLE

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.

### Before you get started with Albato integrations

Before you get started with [integrating AI assistants using Albato](https://albato.com/apps/openai), make sure you follow a few important steps:

**1\. Create an account in OpenAI:**

-   Sign up for a free OpenAI account. Once you're logged in, go to https:​//platform.openai.com/api-keys.

**2\. Generate an API key:**

-   If you don't have a key yet, just click on the "**\+ Create a new secret key**" button to generate your unique API key. It's important to copy and save this key, as you'll need it to link your OpenAI account to Albato.

OpnAI.png

**3\. Create an assistant:** Go to https:​//platform.openai.com/assistants to find a list of all created assistants. Click **+Create** in the upper right corner to create a new one.

Ex (13).png

**4\. Set up an assistant:**

-   Define the role of your assistant. For example, the Albato Support Assistant can answer questions about integrations, and recommend blog articles.
    
-   Give your assistant a name, and provide specific instructions that match its role. For example, the primary role is to provide accurate answers to Albato-related queries.
    

**5\. Select OpenAI model and tools**

-   Select a model, such as **gpt-4-0125-preview**, for tools like file search.
-   In the Tools section, choose whether it will be a code interpreter or a search function. The search function uses downloaded files to answer user questions.

**6\. File upload:**

-   Add files that the assistant can use as a knowledge base. For example, upload blog articles in JSON format, and dialog texts from online chats. This will help the assistant find the necessary information.

RR (7).png

### How to set up OpenAI action: Message to assistant

new\_70Opn\_AI\_2\_0d2b781ce7.png

**1\. Select an assistant:**

-   **Required field.** Select an assistant from the pre-defined OpenAI list. You can customize this list in your OpenAI account.

**2\. Send a message to the assistant:**

**\- Required field.** Enter the text of the message you want to send to the assistant. The message can contain requests, commands, or questions that the assistant should respond to.

**3\. Thread ID:**

-   Optional field. Identifies the thread within which the assistant maintains the context of the conversation. It keeps the previous context while continuing the dialogue.

**4\. Override instructions:**

-   Optional field. You can use this to give the assistant specific instructions on how to behave during a conversation.

**5\. Additional instructions:**

-   Optional field. You can use this to add extra instructions to the assistant's task.

Fields in the OpenAI response:

-   Response message ID
-   Response message
-   Assistant
-   Message to assistant
-   Thread ID
-   Override instructions
-   Additional instructions
-   Run ID
-   Usage - Prompt tokens
-   Usage - Completion tokens
-   Usage - Total tokens
-   Error text

### Telegram and OpenAI assistant integration

Go to the **Apps** section in your Albato account. Click on the **Add a connection** button. Choose Telegram and OpenAI in the list, and connect the apps to Albato.

new\_69Opn\_AI\_5\_39ef750519.png

Create your bot by integrating the apps you need.

new\_68Opn\_AI\_6\_fa508aa983.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.

new\_67Opn\_AI\_7\_59d429b106.png

In the OpenAI assistant settings, you can choose: assistant, message, **Thread ID, Override Instructions, and Additional Instructions**.

new\_66Opn\_AI\_8\_0e96689f24.png

Send the AI text back to the Telegram bot.

new\_71Opn\_AI\_9\_71d536391a.png

The automations are ready! Let's test the integration.

The **Automation Log** shows all the data Albato has received and sent.

new\_72Opn\_AI\_10\_6ddc418690.png

**You can customize automations with Albato tools.**

-   [Incoming Data Filter](https://albato.com/blog/publications/incoming-data-filter)
-   [Router](https://albato.com/blog/publications/router-tool)
-   [Albato Storage](https://albato.com/blog/publications/albato-storage-store-and-organize-your-data)
-   [JavaScript Code tool](https://albato.com/blog/publications/how-to-use-javascript-code-in-albato)
-   [Instructions for all tools](https://albato.com/blog/tools)

[Watch our video tutorial](https://youtu.be/kxtdfCS2P4s/), to see the construction of this use case and discover how to elevate your integration while maintaining the dialog context through the thread\_id transfer!

Did this answer your question?
