> For the complete documentation index, see [llms.txt](https://docs.skyone.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skyone.cloud/english/skyone-studio/integrations/flows/triggers-of-a-flow/as2-triggers-adding-and-setting.md).

# AS2 Triggers: Adding and Setting

AS2 (Applicability Statement 2) is a specification on how to transport structured B2B data securely and reliably over the Internet. Security is achieved through the use of digital certificates and encryption.

Learn how to add and configure an **AS2 Trigger** below:

* [Connecting AS2 accounts](#connecting-as2-accounts)
* [Add an AS2 trigger](#add-an-as2-trigger)
  * [Settings](#settings)
    * [Parameters](#parameters)

### Connecting AS2 accounts <a href="#connecting-as2-accounts" id="connecting-as2-accounts"></a>

Before you can add an AS2 Trigger, you need to connect an account of the **station** type.&#x20;

To do this, while still in the flow, follow these steps:

1. Click on "[**Settings**](/english/skyone-studio/integrations/flows/flow-management/flow-canva-configuring-and-editing-the-flow.md)**".**&#x20;
2. In the "**Connected Account**" tab, click on "**Add account**".

<figure><img src="/files/jsrRXul03QuGj1dt9AR7" alt=""><figcaption><p>Flow configuration screen</p></figcaption></figure>

3. Fill in the following fields:

* **Station name**: name of the station that will send the message
* **AS2 identifier**: AS2 user, which will form the beginning of the AS2 trigger URL
* **Secret key**: AS2 password
* **Private key**: click to load a private key file (.pem)

4. To finish, click on "**Save"**.

{% hint style="info" %}
For more information on connected accounts, please consult this [documentation here](/english/skyone-studio/modules/settings-and-operations/module-settings/connected-account-management.md).
{% endhint %}

### Add an AS2 trigger <a href="#add-an-as2-trigger" id="add-an-as2-trigger"></a>

To add an AS2 trigger, follow these steps:

1. Click on "**Start with a trigger".**
2. Click on the plus sign of the "**AS2"** option. You will then open the modal to configure it and view more information.
3. This modal is divided into two areas: **Info banner** and **Settings**.

<figure><img src="/files/F1hST89btHYjOpjLq7Ma" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
[Find out about the Module Header here](/english/skyone-studio/integrations/flows/module-header.md).
{% endhint %}

#### Settings <a href="#settings" id="settings"></a>

Fill in or select the fields on the **AS2** Trigger screen.

<figure><img src="/files/Y3c70dInSHNf5DEZJVV7" alt=""><figcaption></figcaption></figure>

In the modal that will appear, select the pre-registered URL and Station ID, choose whether you want encryption and/or signature (optional), enter the message and, after selecting the desired options, click "**Save**:"

Fields:

**URL**: AS2 identifier of the selected Station account + "as2.integrasky.cloud"; such as: [http://station123.as2.integrasky.cloud](http://station123.as2.integrasky.cloud/)

**Station ID**: name of the station, entered when registering the Station in **Connected Accounts**

**Encrypt message**: enable or disable the option to encrypt the message to be sent

**Sign message:** enables or disables the option to digitally sign the message to be sent

#### **Parameters**

The following parameters are sent by the AS2 trigger and can be used by other modules in the flow:

1. **message**: message sent
2. **status**: status of the execution, which can be processed or failed.

To finalize the trigger settings, click on "**Save**".

Read also:

* [Edit trigger](/english/skyone-studio/integrations/flows/editing-triggers-and-modules.md)


---

# 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 dynamically by asking a question.

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

```
GET https://docs.skyone.cloud/english/skyone-studio/integrations/flows/triggers-of-a-flow/as2-triggers-adding-and-setting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
