> For the complete documentation index, see [llms.txt](https://docs.documentero.com/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.documentero.com/documentation/chatgpt/create-documents-using-chatgpt.md).

# Create Documents using ChatGPT

With OpenAI ChatGPT integration, you can effortlessly generate DOCX and PDF documents in a matter of minutes. Start with a basic outline or even a blank canvas, and let the AI do the heavy lifting.&#x20;

Pre-requirements:

* [Created Template / Uploaded Document Template](/documentation/general/template-upload-re-upload.md)
* OpenAI Account & API Key Configured

### Connecting Documentero with OpenAI

* Create OpenAI Account
* Go to API Keys - <https://platform.openai.com/account/api-keys>\
  ![](/files/9r2SP8HOjy2VxlIZkQSa)
* Get your API Key and copy into Documentero (your key will be saved and associtated with your account
* Paid Account (Credit Card connected) OpenAI is required to use ChatGPT API

### Document Creation

<figure><img src="/files/kjJV8WOXxGRSwc76fD3m" alt=""><figcaption></figcaption></figure>

If you have template uploaded already to documentero platform you are ready to create your documents

* Go to documents and find your document
* Click on **Generate using ChatGPT** icon
* **Provide prompt** \
  Describe content that you want to generate using AI examples:\
  ‘Create analysis of marketing tools that could help small renovation company gather clients in local market’,

  <figure><img src="/files/9FQKYCIMgCAQtx1Z6rz9" alt="" width="375"><figcaption></figcaption></figure>

  <br>
* **Provide field mapping**

  Explain what are you expecting to be generated for each template field. For fields names that are self-explanatory (like ‘title’, ‘summary’, ‘content’) you can skip this step.
* **Validate Generated Content**

  You can check, validate and edit content generated for each field in your document template. Once you are done - you can go ahead and generate document<br>

  <figure><img src="/files/wfqE3zx9LqvfeT63Kn5a" alt="" width="375"><figcaption></figcaption></figure>
* **Download generated document**

  That’s it! You are ready to download your generate document<br>

  <figure><img src="/files/tNhspZFQ7NNmo7qwL9nG" alt="" width="375"><figcaption></figcaption></figure>

Alternative: Click on template name to open template overview. In overview select **Generate Using ChatGPT**

### **Video Tutorial**

{% embed url="<https://www.youtube.com/watch?v=_dHn_JSqSqI>" %}
