# How to Handle Attachments

Attachments can be sent either as a stream or embedded in the payload as Base64.

In this guide, you will configure a dedicated Message as part of the Incident Guide Integration *(created when following the* [*Bidirectional Asynchronous Incident Guide*](/unifi/3.1/integration-guides/bidirectional-asynchronous-incident-guide.md)*).*  It is assumed that the Process, Web Service, Integration & Connection are already in place *(if not, please ensure that those elements are in place before continuing)*.

The components to configure are as follows:

* Message
* Scripted REST Resource


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sharelogic.com/unifi/3.1/how-to-guides/how-to-handle-attachments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
