> For the complete documentation index, see [llms.txt](https://support.docstudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.docstudio.com/admin-panel/automations/create-automation-page.md).

# Create automation page

This document describes the automation creation page, JSON editor, and execution log.

### Automation page

<figure><img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2FDkgwfewz9XrQ6hPztzP6%2Fimage.png?alt=media&amp;token=68990767-9dd9-4c20-a03d-cebdf45b58e3" alt=""><figcaption></figcaption></figure>

Use the visual editor to build an automation from connected blocks. Each block performs one operation, and the connections determine which operation runs next.

* **Automation name** — Shows the automation name. Click the pencil icon to change it.
* **Search bricks** — Finds available blocks by name.
* **Block list** — Shows available blocks in the **Root**, **Envelopes**, **Integrations**, **Converters**, **AI**, **Logic**, and **Validators** groups.
* **Canvas** — Allows you to add blocks, move them, and connect them into a workflow.
* **Connection points** — Allow you to connect a block’s output to another block’s input.
* **Configure** — Opens the block’s settings.
* **× on a block** — Removes the block from the workflow.
* **Zoom controls** — Zoom in or out and show the current zoom level.
* **Fit to screen** — Fits the workflow into the visible canvas area.
* **Auto layout** icon — Arranges the blocks automatically.
* **Clear canvas** icon — Removes all blocks from the canvas.
* **Inactive / Active** — Disables or enables the automation.
* **JSON** — Opens the **JSON automation** panel on the right, where you can paste or edit the workflow JSON.
* **Save** — Saves the automation.
* **Back to automations** — Returns to the automation list.

#### Configure a block

Click **Configure** on a block to open its settings. The window shows the block’s name and the configuration properties it supports.

{% columns %}
{% column %}
**Config (JSON)** — Allows you to enter and edit the block’s settings.

**Schema properties** — Shows supported properties, their data types, and descriptions.

**Credentials ID** — Allows you to select stored credentials when the block requires them.

**Insert missing properties** — Adds missing properties to the configuration JSON.

**Cancel** — Closes the window without applying your changes.

**Save** — Applies the block’s configuration.
{% endcolumn %}

{% column %}

<figure><img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2Fev249PizZhodzt0piKZc%2Fimage.png?alt=media&amp;token=abceed67-b7e3-44f6-8339-9268d0435588" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

Click **Save** in this window to apply the block’s settings. To save the automation itself, click **Save** at the top of the page.

#### Available blocks

Each block performs a specific operation in your automation. Choose blocks from the following groups and connect them into a workflow.

**Root**

* **SFTP Receiver** — Receives files through SFTP and filters them using a configured pattern.
* **Envelope Trigger** — Starts a workflow for envelopes that match the configured filters, such as status or template.
* **AS2 Receiver** — Receives data from an external system through AS2.
* **Web Hook** — Receives data through a webhook.

**Envelopes**

* **Envelope Rejecter** — Rejects a pending envelope approval with a specified reason.
* **Envelope Flow Resolver** — Finds auto-deposit mailboxes for recipient email addresses and checks that the mailboxes exist and are active.
* **Envelope Initiator** — Initiates an envelope using data from a source file.
* **Envelope Searcher** — Searches for envelopes.
* **Envelope Saver** — Saves an envelope.
* **Document Extractor** — Extracts a selected document from an envelope.
* **Envelope Approver** — Approves a pending envelope approval.
* **Assign Envelope Label** — Adds a label to an envelope.
* **Envelope Filler** — Fills envelope fields using data from the workflow.
* **Envelope Delegator** — Delegates an envelope to another mailbox.
* **Envelope Sender** — Sends an envelope to its recipients.

**Integrations**

* **Webhook Sender** — Sends data to a specified webhook URL.
* **SFTP Uploader** — Uploads a file to an SFTP server.
* **API caller** — Sends a GET or POST request to an external API.
* **AS2 Sender** — Sends data to an external system through AS2.

**Converters**

* **JSON to XML Converter** — Converts JSON data to XML.
* **JSONata Converter** — Transforms JSON data using a JSONata expression.
* **XML to JSON Converter** — Converts XML data to JSON.
* **XSLT Converter** — Transforms XML data using an XSLT stylesheet.
* **EANCOM to XML Converter** — Converts EANCOM messages to XML.
* **Excel to XML Converter** — Converts Excel data to XML.

**AI**

* **Google Document AI** — Processes documents using Google Document AI.
* **Gemini** — Processes input data using a Gemini model and your prompt.
* **OpenAI** — Processes input data using an OpenAI model and your prompt.

**Logic**

* **Parameter Extractor** — Extracts values from input data using XPath or JSONPath expressions.
* **Error Handler** — Handles a workflow error and passes its details to another block.
* **If Condition** — Checks an XPath or JSONPath condition to determine whether the workflow continues along that branch.

**Validators**

* **XSD Validator** — Checks XML data against an XSD schema.
* **Schematron Validator** — Checks XML data against rules in a Schematron schema.

### How to create an automation

1. Open the **Admin panel**.
2. Open the **Automation** tab.
3. Click **Create automation**.
4. Enter a name for your automation.
5. Drag a starting block from **Root** onto the canvas.
6. Add the remaining blocks and connect them in the order they should run.
7. Click **Configure** on each block, enter the required settings, and save its configuration.
8. Check the workflow for errors and correct them.
9. Click **Save** at the top of the page.

{% hint style="info" %}
Click **JSON** to open the **JSON automation** panel and paste or edit the workflow JSON. When copying an API example, use only the array from its `workflow` property, including the surrounding square brackets (`[` and `]`).
{% endhint %}

### Execution log

Open the automation list and click **Run log** next to the automation you need. On the execution log page, click **Log** next to an execution to view its details.

<figure><img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2FL4OGrBdACsPpwtimTwJ8%2Fimage.png?alt=media&amp;token=2b9bc8dd-bb8f-41ae-8e97-11dbd13154e6" alt=""><figcaption></figcaption></figure>

* **Version filter** — Filters executions by automation version.
* **Period** — Filters executions by the selected date range.
* **Status filter** — Filters executions by status.
* **Mailbox** — Filters executions by mailbox.
* **Envelope UUID** — Finds executions for the specified envelope.
* **File name** — Finds executions by file name.
* **Refresh** — Updates the execution list.
* **Start time** — Shows the date and time when the execution started.
* **Version** — Shows which automation version the execution used.
* **Duration** — Shows how long the execution took.
* **Status** — Shows whether the execution succeeded, failed, or is still processing.
* **Log** — Opens the execution details.

#### **Execution details**

<figure><img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2FUY9HzMmcFazFGbovuaz2%2Fimage.png?alt=media&amp;token=21a4b9f6-c55a-448c-bb5b-682de2617a9b" alt=""><figcaption></figcaption></figure>

* **Brick ID** — Shows the operation’s unique ID. Click the **Copy** icon to copy it, or hover over the ID to view the operation description.
* **Brick type** — Shows the workflow operation type.
* **Envelope UUID** — Shows the envelope’s unique ID. Click the **Copy** icon to copy it.
* **Mailbox UUID** — Shows the mailbox’s unique ID. Click the **Copy** icon to copy it.
* **Start time** — Shows the date and time when the operation started.
* **Duration** — Shows how long the operation took.
* **Error** — Shows error details if the operation fails.
* **File name** — Downloads the file when you click its name.
* **Reprocess** icon — Starts reprocessing for the selected log entry.
* **Close** — Closes the execution details window.

Clicking **Reprocess** closes the window and shows a notification. Wait a couple of minutes, then click **Refresh** in the execution list to check the reprocessing result.

### Related topics

* [Automations page Overview](https://support.docstudio.com/admin-panel/automations/automations-page-overview.md)
* [Create credential page](https://support.docstudio.com/admin-panel/automations/create-credential-page.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 by asking a question.

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

```
GET https://support.docstudio.com/admin-panel/automations/create-automation-page.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.
