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

# Rules can check whether a chat conversation has an attachment

The `chat_has_attachments` variable is unset until the end user sends an image in a chat conversation. Ada then sets it to true. A Rule or a Playbook condition can test it with `is true`. Use it to skip the File Upload block when the image is already in the conversation. The value stays true when Ada withholds the image or does not forward it.

The variable is available only when Ada turns it on for your AI Agent. For the list of reserved variables, see [Using variables](/docs/automation/variables/using-variables).