# Documents with AI

Describe the document you need, like a quote, and the AI designs it with your brand. Generate it from any case with that case's data, review it in the Outbox and send it by WhatsApp or email.

A document is a PDF made from a design and the data of one case: a quote, an application, a certificate. You design it once per FlowApp, and every case can generate its own.

## Design a template with AI

Open your FlowApp and go to “Documents”. There you see the designs of your documents. Owners and admins create and change them.

Tap **“New document”**, describe it in “What document do you need?” and tap **“Create with AI”**. For example: *A quote for the customer with their details, what they asked for, the estimated price and a signature line.* The AI designs it with your brand kit in up to a minute.

Open a design to see it. “Preview” shows where each piece of data goes, and “Example” fills it with one of the FlowApp's example cases. To change it, write what you want in “Ask for a change”: *Add a coverages section and make the total bold.* Each change makes a new version. “Archive” removes a design you no longer use.

> **Note:** The AI never writes your numbers. A design names the data it shows, and each document fills it from its case when it's generated.

## Generate it from a case

Open a case on the board. Its “Documents” section has **“Generate”**: pick the document and the PDF is made with that case's data. Anyone on your team who can see the case can generate one.

Each document row has one action, **“Review”**, and the rest in its ⋮ menu: “Download” and “Send for signature”. In “Review” you read the PDF, download it, mark it as sent or edit it. “Edit” lets you change the text and “Save changes” makes a new document that replaces the old one. “Discard” takes it out of the Outbox.

## The Outbox

Every document waits in the “Outbox”, next to the Inbox, until someone sends it. “To send” holds the ones nobody has sent yet, and “Sent” the ones already on their way, with how each one went out.

If you send it outside ioZen, for example from your own email, tap **“Mark as sent”** so it leaves “To send”.

## Generate it when a case enters a phase

A phase can make its documents on its own. In the column's menu, “Settings” opens “Phase settings”. In “Documents”, tap **“Add a document”**, pick one and tap **“Save”**. From then on, every case that enters that phase gets that document. A case that already has it doesn't get a second one.

Whoever moves the case sees “Document generated” with two options:

- “Send now”: by WhatsApp or by email, right there.
- “Later”: it stays in the Outbox.

Nobody receives a document without that click. If the workspace doesn't have the credits for it, the phase skips the document and the case still moves.

## Send it by WhatsApp or email

In “How to send it”, choose the channel:

- “WhatsApp”: goes to the case's conversation, with a message you can change. WhatsApp only lets you write within 24 hours of the contact's last message, and each message uses purchased credits.
- “Email”: an email with the link to the document, to the email on the case's contact. It uses 0.4 credits, and your plan sets how many emails go out per day. It comes from *Your business via ioZen*, and replies reach your team in the “Inbox” and the case's “Messages” (see [Email replies in the inbox](https://iozen.ai/docs/email-replies-in-the-inbox)).

If it can't go out, the dialog says why: the contact asked not to receive messages, the case has no WhatsApp conversation, the contact has no email, or today's emails are used up. Nothing is charged, and the document stays in the Outbox. On test and example cases no email goes out: copy the link to try it.

To have the contact sign it, see [Send for signature](https://iozen.ai/docs/send-for-signature).

## Credits

| What | Credits |
|---|---|
| Design a document or ask for a change | Uses credits, like any work done by AI |
| Generate a document | 10 |
| Send it by email | 0.4 |
| Send it by WhatsApp | One message, paid with purchased credits |
| A signature, when it's completed | 50 ([Send for signature](https://iozen.ai/docs/send-for-signature)) |

On test cases and on the FlowApp's example cases, generating and signing are free.

A document needs its full price before it's made. When the workspace doesn't have it, the case shows one notice at the top of “Documents” with what a document and a signature cost, “Generate” stays closed, and owners and admins see the link to buy credits. See [Plans, trial and credits](https://iozen.ai/docs/plans-and-credits).

## In your Intake Bot

An Intake Bot can also hand the person their PDF at the end of the conversation. See [Deliver a document from the Intake Bot](https://iozen.ai/docs/deliver-a-document-from-the-bot).

## Frequently asked questions

### Does the AI write the names and numbers?

No. The AI only designs the page. Names, amounts and dates come from the case, from your Intake Bot's calculations and from the records linked to it, every time you generate.

### How many credits does a document use?

Designing a document or asking for a change uses credits. Each generated document uses 10 credits, and an email to the contact 0.4. On test cases and on the FlowApp's example cases, generating is free.

### What if I don't have enough credits?

Generating needs the full 10 credits. Without them, “Generate” is closed and the case says what a document and a signature cost. A phase skips the document and the case still moves.

### Can I change a document after it's made?

Yes. “Edit” saves a new document that replaces the old one. A PDF never changes once it's made, and each one keeps its fingerprint.

### What happens to a contact's documents if I delete the contact?

They're deleted with the contact, the PDFs too. Before you confirm, the dialog says how many there are.

### Do my document designs travel with my FlowApp?

Yes. When you copy your FlowApp or share it as a template, its document designs go with it. Generated documents stay in their cases.
