> For the complete documentation index, see [llms.txt](https://help.whautomate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.whautomate.com/product-guides/integrations/openai.md).

# OpenAI

In this video we are going to see how to setup GPT powered AI chatbot that can be installed on whautomate platform which can run on whatsApp leveraging chat GPTs language model and how to use it.

{% embed url="<https://youtu.be/oUKY4uzAoF0?si=wDz0d3qSU7_m3T7X>" %}

**Setup OpenAI platform account:**

Step 1: Go to <https://platform.openai.com/> and **Login** or **Signup** a new account.

Step 2: If you **Signup** for a new account just enter your details to continue.

<figure><img src="https://lh7-us.googleusercontent.com/0VVJKs_50mGpS0qKNlQ3mCmEfvcbYqV62g7Nn0NXvIfqQg_9FNKZc5BUvR-tb728A6IkrVxOkpImITCDivy5DCP5--TZp8DavxU4er4hPFjOt1xvf3AIHz_T1hhn2oS7KlZRhs5mnguVAiMGk3z5BFA" alt=""><figcaption></figcaption></figure>

Step 3: Enter your phone number and Send a confirmation code via **WhatsApp** or **SMS** to verify your phone number.

<figure><img src="https://lh7-us.googleusercontent.com/h2_pMZ3OcH_RVqbP-a8GABobLSLpNN6jFPObsl3BAlFYHyzgDnccEqB-s9IY9DoVQ3OHexBIVWG_Yyl1mKcL0A0VceqewiUzO5h67ZcbR-pyT96qQoHYjHKcSloKjeqLtF1L__ysvigi765GPDmmZ8w" alt=""><figcaption><p>Send a confirmation code via <strong>WhatsApp</strong> or <strong>SMS</strong></p></figcaption></figure>

Step 4: Select the **Manage account** option to continue.

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2F7gIwzecR1gsBog48GL0n%2Fimage.png?alt=media&amp;token=921d580e-546a-4f61-97c5-33159ce2b389" alt=""><figcaption><p>Select the <strong>Manage account</strong> option</p></figcaption></figure>

Step 5: Add payment details for Open AI billing, Select the Billing (Overview) menu option and Select the **Add Payment details** button to continue.

<figure><img src="https://lh7-us.googleusercontent.com/6B_cf3qQmOBXlA7SQjveX4s3_gDU8WZtcINPS1mvRcfDbPRooxJM6iTSpA6xdgxYmT4gFrWQz00AismbnOxF-N-pCAZkFR94NVWvIlAmg-BOfuBJ87aYr38ToUU9Og2ebNyLsCF7YEaysX9wN5gw6Bc" alt=""><figcaption></figcaption></figure>

Step 6: Select your business type **Individual** or **Company.**

<figure><img src="https://lh7-us.googleusercontent.com/KbKjcN-MrHaWBdNfVLLfS3Tz3HAez5jqDmH9rhPWEW-Xdhs3g72s52IVZ45PzZSIEn3XAslZ6wRfYDrJOWAHkIZfsxyzqyH96siSG25AMPQ_unIm9wEgBryBqsCZQ2QH46_FZ2NodLz50cyD12E1cio" alt=""><figcaption></figcaption></figure>

Step 7: Then add your payment details (Fill in all the details below showing the form) and select the **Continue** button to complete payment details.

<figure><img src="https://lh7-us.googleusercontent.com/D3oY7Kgj-4vOKZq7QYV9QSDejzP6rmKDFQMdwPauUQtfRtYp24DMm8btyzx8_bHIpqmlVze9_HbiQGNkVzAGGZPHcm0fSWbQNz2mxvYRCv6iqYIz4ymk9kV6GxbzkDT4xWa25LGJfWlUrbIN7JsR9LA" alt=""><figcaption></figcaption></figure>

Step 8: Then select the View API key option to continue.

<figure><img src="https://lh7-us.googleusercontent.com/yUB_bD9DN6KKDNpJizo9IUCcMIkn13qq3d0hVXs_PtniIeaTkMvnoVQQJCc-akN5Zs1Cb1ubZo5KeXcy-cFjcam2lMNRzAD7kQ-2jqNmsi5FlLe5IbdGuJFAwUo3mTf6GNvpX76K5RTo1eCn1wtcMnM" alt=""><figcaption></figcaption></figure>

Step 9: Select the **Create New secret key** button, Enter the key name (eg. Whautomate), Select the Create Secret key button and **Copy the API key**

<figure><img src="https://lh7-us.googleusercontent.com/X-hV4aXKgopOqkivnY7ofuHj2FhdVBK5sVZycmLwy7wDhhCiyAp5SeR1Yk0v4GnIbSd7AbkDbHGlAFkLO15wEwqFq8FYZlBReuae6T2Y2EoCgS24CavCKjmLQ5cfrDmIK_dRUqR4FS3TtTMgTWXaC6Y" alt=""><figcaption></figcaption></figure>

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FbgWow9YIhPNfcIuMF9s2%2Fimage.png?alt=media&amp;token=db39b3c5-3846-47d7-be91-43f05fa0b16b" alt=""><figcaption><p>Enter the key name optional (eg. Whautomate)</p></figcaption></figure>

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FzgTxJDzvs6DQnJl3Syye%2Fimage.png?alt=media&amp;token=0f907625-222f-4290-9bdc-b7aa5bf0a0c4" alt=""><figcaption><p>Copy the API key</p></figcaption></figure>

Step 10: Login to the Whautomate platform then select the Integrations menu option, and select **Open AI Connect** button.

<figure><img src="https://lh7-us.googleusercontent.com/iQFRDPLfF9H8KfPkvdB4h-pHxnkuFyhao3-62qQO6dp0NpsjGQOD0yQdikR8Xo3_6aPTm-EY5gLzKBwCvTrCh5n4QaNqiG6F-od5kiUJwfpIX8R8DwT3Ei4DC3pkr0jdIXcpfkOv69eEHxFUw5U11z4" alt=""><figcaption></figcaption></figure>

Step 11: Paste the **API Secret Key**, and select the **Save** button to complete the Open AI integration setup.

<figure><img src="https://lh7-us.googleusercontent.com/iv4EP9tf_2Ow5_QcaOXguw44r4Vm_WAycD4uIFqsLS8EUtzixSFEbMQwNGvCK0AC3gJwpa2pda6sueUluC0xE4CfPP6ALpXNykwvbFO4HXEXgbnNudkrbzR98jT5g31ND_KL3LXZeLydp6n3MKwYRsY" alt=""><figcaption></figcaption></figure>
