> For the complete documentation index, see [llms.txt](https://docs.frends.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frends.com/tasks/tasks/as3.md).

# AS3

AS3 is a secure protocol for exchanging structured business data over FTP using encryption, digital signatures, and MDN receipts.

Frends offers seamless integration with AS3, enabling you to securely exchange structured business data such as EDI or XML using FTP as the transport protocol. AS3 provides message encryption, digital signatures, and receipt acknowledgments (MDNs), ensuring the confidentiality, integrity, and reliable delivery of your transmissions.

By leveraging Frends' task-based approach, you can configure and customize AS3 integrations according to your specific requirements. Frends provides tasks for sending AS3 messages over FTP, receiving and processing incoming AS3 messages, and receiving and validating MDN receipts for messages sent to partner systems.

## Use cases

Below you will find examples of typical use cases for AS3 and how they could be implemented in Frends.

### Sending AS3 messages and validating MDN receipts

We can create an integration that picks up EDI, XML, or other business documents from a specified path, packages them as an AS3 message, encrypts and signs the message, and securely transfers it to the partner's FTP server using the [`AS3 SendMessage`](/tasks/tasks/as3/sendmessage.md) task. After the message has been sent, the partner can return an MDN receipt confirming its delivery. The [`AS3 ReceiveAndValidateMdn`](/tasks/tasks/as3/receiveandvalidatemdn.md) task can be used to retrieve the MDN from the FTP server and validate it, ensuring that the acknowledgment is authentic and corresponds to the sent message.

<figure><img src="https://2096450325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FevBo49UTUjEN84O2WPl6%2Fuploads%2Fgit-blob-47a09fc1a6159838a1438cf53f411d8d9caaf6bd%2Fsend_message.svg?alt=media" alt=""><figcaption><p>SendMessage</p></figcaption></figure>

### Receiving AS3 messages

The ReceiveMessage task can be used to retrieve AS3 messages from a specified location on an FTP server. The task processes the incoming message, validates its contents, and extracts the payload for further processing.

After processing the message, the task generates an MDN receipt and stores it in the specified location, where it can be retrieved by the sending partner as confirmation of the message processing.

<figure><img src="https://2096450325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FevBo49UTUjEN84O2WPl6%2Fuploads%2Fgit-blob-e49745e5b422ab4b9af99885cbde38afe399cfbd%2Freceive_message.svg?alt=media" alt=""><figcaption><p>ReceiveMessage</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.frends.com/tasks/tasks/as3.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
