# AS2 Workflow Task

The *AS2 Workflow task* object in Astera allows us to send EDI files to a partner using the AS2 protocol.

<img src="/files/6rlAiv2y1AXcA8T8QDgS" alt="" width="181">

To use an *AS2 Workflow task,*

1. Drag-and-drop the AS2 Workflow task object onto the Workflow designer.

<img src="/files/abIWAT7fzlYIvVTjoI4X" alt="" width="563">

2. Configure the object by right-clicking on the object’s header and selecting *Properties* from the context menu.

<figure><img src="/files/Ea3SVN4JRhYChGDvUS3E" alt="" width="329"><figcaption></figcaption></figure>

An *AS2 Action Properties* window will open, as shown below. Here, we will configure the properties of the *AS2 Workflow* task.

<img src="/files/ko9d7cVMsm0vzzudmsV7" alt="" width="563">

*EDI File –* This is where you will select the EDI File you want to send to your partner.

<img src="/files/ailHb3aEPiM1wpfeNIuJ" alt="" width="563">

Next, we have the *Choose AS2 Partner* option; here, we can either select an already existing partner or we can add a new partner.

<img src="/files/rwoLsinMGOL3SIJOpgKa" alt="" width="563">

If we select the *New Partner* option, we will be presented with the screen shown below. Here, we can import a new partner by configuring their information. To learn more on how to setup a partner, click [here](https://documentation.astera.com/dataflows/edi/adding-an-as2-partner).

<figure><img src="/files/PsmguBIwq6LbsGyvXWOm" alt="" width="536"><figcaption></figcaption></figure>

For our use case we will be using the option *Specify AS2 Partner Information* instead of choosing an AS2 partner, as shown below.

<img src="/files/LLkxFT4yxZyRwfs0RMn5" alt="" width="563">

Here we need to specify the following:

* *AS2 Partner Server URL –* The URL of the partner's server where their AS2 service is active.
* *AS2 From –* Your AS2 ID.
* *AS2 To –* Partner's AS2 ID.
* *AS2 Partner Certificate –* File path where the partner's public certificate is stored.
* *AS2 Sender Certificate and Password –* File path where your private certificate is stored along with its password.

Once configured, click *Next*.

<img src="/files/ziZoSGXCDwNcH9PnSEE5" alt="" width="563">

The *Config Parameters* screen will open; here, we can configure and define parameters for multiple variables.

Parameters simplify deployment of flows by replacing hardcoded values. If left empty, default properties are used.

Let’s keep the default settings and click *OK.*

<img src="/files/fJFMqIhiDnDithh9lgLW" alt="" width="563">

Our *AS2 Workflow task* object is now configured. We can now schedule this Workflow or run this Workflow to send our EDI file to our partner.

<img src="/files/yOsVVWIe5MLOA0C4TyXF" alt="" width="563">

This concludes our discussion on the *AS2 Workflow task* in Astera.


---

# 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://documentation.astera.com/astera-data-stack-v10/workflows/as2/as2-workflow-task.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.
