# Open AI Setup

In this video you will learn how to setup Open AI - ChatGPT

{% embed url="<https://www.loom.com/share/aa546826d03e4d6bbbd03662a4a56cd5>" %}

To get your API KEY

{% embed url="<https://platform.openai.com/account/api-keys>" %}

### Cron JOB setup

When using Open AI, you will neet to setup cron JOBS that will run on some interval. Suggested is 1-5 min.&#x20;

The cron job that need to be executed is

```
curl -sSf https://youdomain.com/gen/cron/ai
```

**<https://youdomain.com/gen/cron/ai>**

Here is how you can create cron job in cPanel

{% embed url="<https://chat.openai.com/share/48f0c5a5-7ba5-4e18-b210-86c550b34ac3>" %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mobidonia.gitbook.io/privacy-ai/define-basics/open-ai-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
