> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ada.cx/llms.txt.

# Images and PDFs

## Overview

Your AI Agent can read images that end users send and use them to resolve inquiries. A vision model produces a text description of each image, and the Agent reasons over that description. The Agent never receives the image itself.

## Supported formats and channels

The AI Agent reads images on these channels:

* [Messaging](/docs/channels/messaging)
* [Email](/docs/channels/email)
* SMS and MMS, through Twilio
* WhatsApp, through Twilio or through Sunshine Conversations
* Instagram, connected directly to Ada or through Sunshine Conversations
* Facebook Messenger and Twitter DM, through [Sunshine Conversations](/docs/channels/social/sunshine-conversations-setup)

The Agent also reads images on the [Sunshine Conversations Web Messenger](/docs/channels/third-party/sunshine-web-messenger). This is available on request. Contact your Ada team to enable it.

See [Messaging conversation guidance](/docs/channels/messaging/conversation-experience) for image and handoff-upload behavior.

* **Formats on the Messaging SDK and Email**: PNG, JPEG, GIF, HEIC, and HEIF. WebP is read on the Messaging SDK only. PDFs are read only when Ada turns on PDF reading for your AI Agent. See [PDFs](#pdfs). AVIF, SVG, other documents, and video are not read. Format support on other channels differs. This page does not list it.
* **HEIC and HEIF**: on the Messaging SDK and Email, the Agent converts each HEIC or HEIF image it reads to JPEG. The JPEG is stored and is passed to human agents on handoff. Images wider or taller than 4096 pixels are scaled down during conversion. Images over 50 megapixels are not read. An image the Agent does not read keeps its original format, for example the fourth image in an email.
* **Size**: on the Messaging SDK, each image can be up to 50 MB. On Email, the whole message, including every attachment, can be up to 30 MB. On SMS and MMS and on WhatsApp through Twilio, each image can be up to 10 MB. On Instagram connected directly to Ada, each image can be up to 25 MB. Channels through Sunshine Conversations have no Ada-side size cap.
* **Messaging SDK**: the AI Agent reads each image an end user uploads. In the hosted chat window, an end user can attach up to 3 images to one message. The Agent replies once for each image. Image uploads are off by default. The **Enable image uploads to your AI Agent** toggle controls them. The Agent does not read images from legacy Chat. To let end users upload images:

  1. Go to **Config > CHANNELS > Messaging**.
  2. On the **Appearance** tab, open the **General** drawer.
  3. Enable **Enable image uploads to your AI Agent**.
  4. Click **Save changes**.

  On the legacy Ada Web Chat, the toggle is locked because image uploads are not available there. Contact your Ada team to move your AI Agent to the Messaging SDK. This toggle does not change file uploads to human agents.
* **Email**: the Agent reads up to 3 images per email. The inbox's [attachment handling](/docs/channels/email/email-configuration/email-handoffs/attachment-handling) setting decides whether it reads them:

  * **Hand off to a human (default)**: every email with an attachment is handed off. No image is read.
  * **AI Agent replies without the attachment**: attachments are discarded. No image is read.
  * **AI Agent replies using the attachment**: images are read, and every accepted attachment is kept for a later handoff.

  AVIF and SVG attachments are never read. They count as non-image attachments.

## What the Agent reads

The AI Agent receives a description of each image. It includes all visible text: order numbers, error messages, codes, dates, and amounts. It also includes the visible content: products, damage, packaging, and the screen shown in a screenshot. Text inside an image is treated as end-user input, never as instructions.

## Sensitive images

An image is withheld when the AI Agent detects any of the following anywhere in it. The Agent learns only the document type, not its contents, and the filename is dropped.

* A payment card with any part of the card number visible
* A government ID document: passport, driver's license, national or state ID card, or residence permit
* A credential document that is not a government ID, such as a social security card or a bank statement that shows full account numbers

A receipt or order confirmation that shows only the last 4 digits of a card is read normally. A full card number anywhere in an image is withheld.

Detection is automatic and best-effort. A card number that detection misses is still masked by the built-in payment card redaction before the Agent sees the description. Any other text that gets through is handled like typed text, including your [Redaction settings](/docs/setup/redactions/redaction-settings).

Payment cards are always withheld. You choose whether the Agent withholds the other two types under [Image redactions](/docs/setup/redactions/redaction-settings#image-redactions). Both are enabled by default.

By default, the Agent tells the end user that it did not read the image, and names the document type, for example "your passport or ID". It does not ask them to resend the image. The Agent then gives one next step. For a payment card, the Agent may ask for the last 4 digits as text. For an identity document or other credential, the Agent does not ask for the number. It offers a human agent when a handoff is available. When no handoff is available, it says that human support is not available and keeps helping without the number. While a Playbook defers handoffs, or after the Agent has handed off the same issue, it does not offer a human agent and keeps helping without the number.

In the dashboard, a withheld image appears as `[Image withheld: sensitive content]`. The Agent does not read a withheld image. On Email, the withheld image still goes to the human agent on handoff, like any other accepted attachment.

## PDFs

Your AI Agent can read PDFs on the Messaging SDK and on Email. This feature rolls out to each AI Agent instance in turn. If it is not available yet, contact your Ada team.

The Agent reads the text of each page, and it reads a scanned or photographed page as a picture. The Agent gets the document type, the key fields that the PDF shows, and a short summary. The key fields are date, amount, currency, payer, payee, and reference. It never receives the file itself.

A PDF follows the same redaction settings as an image. While **Other credential documents** is enabled, the Agent withholds a PDF that shows a full bank account number or IBAN and reads nothing in it. When you disable it, the Agent reads the whole PDF, full account numbers and IBANs included.

* **Limits**: up to 2 PDFs per message or email, and up to 20 MB per PDF. The Agent reads the first 10 pages. When a PDF has more pages, the Agent tells the end user that it read only the first 10. Every page that the Agent reads is checked. The Agent does not read a PDF that is password-protected, damaged, too large to check, or that takes too long to check. It tells the end user.
* **Messaging SDK**: PDF uploads are off by default. Enable **Enable PDF uploads to your AI Agent** under **Config > CHANNELS > Messaging**, on the **Appearance** tab, in the **General** drawer. This toggle is separate from **Enable image uploads to your AI Agent**. The hosted chat window then shows **Attach file** in place of **Attach image**.
* **Email**: only an inbox set to **AI Agent replies using the attachment** reads PDFs. The other two [attachment handling](/docs/channels/email/email-configuration/email-handoffs/attachment-handling) options do not change.
* **Sensitive PDFs**: a PDF follows the same rules as an image, for the whole document. If any page shows a payment card, the PDF is always withheld. Government ID documents and other credential documents follow your [Image and PDF redactions](/docs/setup/redactions/redaction-settings#image-redactions). A bank transfer confirmation that shows a full account number counts as a credential document. The Agent withholds it while **Other credential documents** is enabled. In the dashboard, a PDF withheld for sensitive content shows `[PDF withheld: sensitive content]` under the message that the end user sent with it.
* **PDFs that the Agent could not read**: on the Messaging SDK, the dashboard withholds a PDF in 4 cases:

  * The stored file is missing or refused.
  * The file is not a PDF, for example an image with a .pdf name.
  * The model rejects the request.
  * The Agent still cannot read the PDF after it tries again.

  The dashboard then shows `[PDF withheld: could not be checked]`. While the Agent reads a PDF, the dashboard shows `[PDF pending review]`. When the Agent reads a PDF and does not withhold it, the dashboard shows the message that the end user sent with the PDF above the PDF link. A PDF that the Agent does not read for a reason under **Limits** stays visible in the dashboard. On the Messaging SDK, it does not go to a human agent.
* **PDFs at handoff on Messaging**: a PDF sent during a handoff is checked before it reaches the human agent, like an image. A PDF reaches a human agent only when Ada checked every page and did not withhold it. A PDF with more than 10 pages does not reach a human agent. A PDF with more than 30,000 characters of text in the pages that the Agent reads does not reach a human agent either. The Agent still reads the first 30,000 characters.
* **PDFs at handoff on Email**: a PDF goes to the human agent like any other accepted attachment. This is also true when the AI Agent withheld it or read only its first 10 pages. Only a PDF that a safety check flagged is held back.
* **Safety checks**: every page that the Agent reads gets the same content moderation and known-CSAM checks as an image. The pictures inside those pages also get the known-CSAM check. On Messaging, a PDF does not reach a human agent when a check does not finish. Examples are a PDF with more than 20 different pictures, or with large photos whose pixels add up to more than the check reads.

## Image moderation

Image moderation keeps the AI Agent from reading an image with harmful content, the same way content moderation applies to typed messages. The Agent checks each image that an end user sends against its existing content moderation categories. Your Ada team can disable image moderation for an AI Agent on request.

### Categories

Images use the same moderation categories as typed messages. You cannot set a category for images only, and the check has no threshold that you can change. The check covers these categories for images:

* Sexual content
* Violence, including graphic violence
* Self-harm, including self-harm intent and self-harm instructions

The moderation categories for hate, harassment, and sexual content that involves minors apply to typed text only. Images are still checked against known child sexual abuse material hash lists. See [Child sexual abuse material](#child-sexual-abuse-material). An image that shows partial nudity, for example a fit photo for swimwear or underwear, can be flagged as sexual content.

### When an image is moderated

A flagged image is withheld from the AI Agent and from the dashboard. An image is moderated when the check flags it in one of your moderation categories. Then:

* The Agent does not read the image.
* In the dashboard, the image appears as `[Image withheld: sensitive content]`.
* The conversation appears under the **Moderation** filter in [Conversations](/docs/optimization/conversations/response-training#find-and-filter-conversations), with the flagged categories. The filter does not show whether the hit came from an image or from typed text.

The next steps depend on the channel:

* **Every channel except Email**: the Agent replies with the same safety message that it sends for a flagged typed message. The stored image is deleted at once and does not go to a human agent on handoff.
* **Email**: the Agent answers the rest of the email without the image. It does not send the safety message. The image does not go to a human agent on handoff, and Ada deletes it.
* **During a live handoff**: if an end user sends the image while a human agent has the conversation, the image is withheld in the dashboard but is not deleted. The conversation does not appear under the **Moderation** filter.

On Email, the Agent checks only the images that it reads: up to 3 images per email, within a time limit, and only when the inbox uses the **AI Agent replies using the attachment** setting. An image that the Agent does not read is not checked. It goes to the human agent on handoff, like any other accepted attachment.

### Check errors and delays

A failed or slow check follows fixed rules, so that a moderation problem does not stop the conversation. The check runs at the same time as the image description, so a clean image usually adds no delay.

* If the check returns an error, the Agent reads the image normally, the same as a typed message when moderation fails.
* If the check does not finish in time, the Agent does not read the image. On every channel except Email, it replies with the safety message. The image stays visible in the dashboard and can go to a human agent, because the check did not flag it. The conversation does not appear under the **Moderation** filter.

## Child sexual abuse material

Before the AI Agent reads an image, Ada checks it against known child sexual abuse material hash lists and reports matches as the law requires. The Agent does not read an image that matches. This check runs whether or not image moderation is enabled, and it has no setting.

## Images at handoff

When a conversation goes to a human agent, the images that the end user sent can go with it. The steps depend on the handoff platform.

### Zendesk Ticketing

The **Create Ticket** action of the [Zendesk Ticketing](/docs/handoffs/zendesk/zendesk-ticketing) app can attach the images an end user sent to your AI Agent in a chat conversation. The images become files on the ticket.

**To attach the images:**

1. In the Zendesk Ticketing **Create Ticket** action, add the **File Data Token** input.
2. Map the conversation variable `chat_attachments` into the **File Data Token** input.

Ada builds the token each time the action runs. It includes each image that the AI Agent has read and that is not sensitive. When **Enable PDF uploads to your AI Agent** is on, the token also holds each PDF that the AI Agent read in full and that passed every safety check. A PDF that is sensitive, has more than 10 pages, or that a safety check did not finish is not in the token. The token leaves out:

* Images that the AI Agent withheld as [sensitive](#sensitive-images)
* Images that Ada is still checking when the action runs
* Images that Ada flags as malware
* Images that Ada cannot read

The token has a size limit. It holds about 20 images. If the conversation has more, Ada keeps the most recent images. Ada also leaves out images that it cannot check in time.

To skip the File Upload block when the end user already sent an image, test the `chat_has_attachments` variable with `is true` in a Rule or a Playbook condition. See [Using variables](/docs/automation/variables/using-variables).

This option works for Zendesk Ticketing only.

## Redactions

[Redaction settings](/docs/setup/redactions/redaction-settings) apply to image descriptions the same way they apply to typed messages.

## Retention

The period that Ada keeps a stored image depends on the region where your AI Agent is hosted. Email [attachments](/docs/channels/email/email-configuration/email-handoffs/attachment-handling) use the same periods.

| Where your AI Agent is hosted                                 | When a stored image is deleted   |
| ------------------------------------------------------------- | -------------------------------- |
| `<ai-agent>.ada.support`                                      | 7 days after upload              |
| `<ai-agent>.eu.ada.support` or `<ai-agent>.maple.ada.support` | 1 day after upload               |
| `<ai-agent>.us2.ada.support`                                  | Not after a fixed number of days |

Ada does not store an image that the AI Agent reads on a channel connected through Sunshine Conversations. The text description remains part of the conversation transcript.

## Unreadable images

If an image cannot be read, the AI Agent tells the end user and asks them to describe it or send it again.

## Related features

* [Redaction settings](/docs/setup/redactions/redaction-settings): Control which information the AI Agent keeps private.
* [Attachment handling](/docs/channels/email/email-configuration/email-handoffs/attachment-handling): Choose how each email inbox handles attachments.

---

Have any questions? Contact your Ada team, or email us at [](mailto:help@ada.cx?subject=Help%20Docs%20inquiry).