> For the complete documentation index, see [llms.txt](https://guide.tiledesk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.tiledesk.com/ai-chatbots-and-automation/actions-explained/chatgpt-assistant-beta.md).

# ChatGPT Assistant (beta)

The new, special, ChatGPT Assistant action allows to easily interact with the new [OpenAI Assistant APIs](https://platform.openai.com/docs/assistants/overview?context=without-streaming).

Assistants APIs helps you create a full, consistent exeperience with OpenAI, because they create a sandbox able to embed all of your documents with a great, embedded Vector indexing features, computing capabilities (with the “code interpreter”) and “function calling”.

#### Quick start <a href="#quick-start" id="quick-start"></a>

Supposing you already know how ChatGPT Assistants work, starting using assistants with Tiledesk is very easy and straightforward experience.

You must simply import our [Assistant Quick Start tutorial](https://tiledesk.com/community/search/getchatbotinfo/chatbotId/66426f62f3c66700137f331d-Drag---drop-OpenAI-Assistants) (with the “Import” button) into your own project.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FEN0821kpRhAPPaHzOpu0%2F2stciz-image.png?alt=media&amp;token=aaa6715e-b8ac-4931-8140-e0512471e137" alt=""><figcaption></figcaption></figure>

Once you import the assistant into your project you simply have to do two easy steps:

1. Setup the ChatGPT Assistant Action with your Assistant ID
2. Setup your OpenAI APIKEY in Integrations

To setup your Assistant ID

Click in the Assistant Action in the defaultFallback block. The Action detail will open. In the Assign GPT Assistant, put your own Assistant ID (see the arrow in the picture):

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FVzcn1DrwYSKszAjAbOIq%2F2stcrm-image.png?alt=media&amp;token=b0a5fb5e-d4e9-44e6-9130-1daa2986c117" alt=""><figcaption></figcaption></figure>

Setup your OpenAI APIKEY

Move to the Settings > Integrations > OpenAI section and setup your personal APIKEY, as in the following picture:

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FPj9NiTGz5OvX4RcEttuq%2F2stcvh-image.png?alt=media&amp;token=0a5bfbb0-122a-46e0-9f64-b5c4fa9f23e4" alt=""><figcaption></figcaption></figure>

You are now ready to use your assistant!

Go back to your flow and launch it with the test button, starting interacting with your assistant:

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FVuhuPa1BCle31L3P50gL%2F2stdrw-image.png?alt=media&amp;token=a2eebf8d-1c73-42c3-b09b-882a8af8947a" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://guide.tiledesk.com/ai-chatbots-and-automation/actions-explained/chatgpt-assistant-beta.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
