# 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](https://docs.documentero.com/documentation/template-upload-re-upload)
* OpenAI Account & API Key Configured

### Connecting Documentero with OpenAI

* Create OpenAI Account
* Go to API Keys - <https://platform.openai.com/account/api-keys>\
  ![](https://1713720388-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRMYKAUZ0NsaDRvNONC3%2Fuploads%2FVzxjWR2KW2rfbbj8n9Xl%2Fimage.png?alt=media\&token=2db05640-1365-4eb3-aa21-d168ad45f820)
* 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="https://1713720388-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRMYKAUZ0NsaDRvNONC3%2Fuploads%2FUqRTiPYt9ZY0HH32ZQmF%2Fimage.png?alt=media&#x26;token=cefaea81-c12d-44fb-b303-d69b0f203163" 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="https://1713720388-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRMYKAUZ0NsaDRvNONC3%2Fuploads%2FTitLXqRJDo1JISjrJ4X2%2Fimage.png?alt=media&#x26;token=e929a6e4-6974-4709-a350-a8af45ab865f" 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="https://1713720388-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRMYKAUZ0NsaDRvNONC3%2Fuploads%2FWxlbwNUaTDt3oTnCJ1fp%2Fimage.png?alt=media&#x26;token=fda8564d-1b4e-42e8-b6ab-eb985b0a1596" alt="" width="375"><figcaption></figcaption></figure>
* **Download generated document**

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

  <figure><img src="https://1713720388-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRMYKAUZ0NsaDRvNONC3%2Fuploads%2FgdBwnEq3rEyrIhwin2qW%2Fimage.png?alt=media&#x26;token=3e502394-75ce-481c-8b69-369566dab949" 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>" %}
