Skip to main content

Outbound Messages (v2)

Add a message action to an Automation v2 branch when a team or application needs to know about the file or result that reached that step. Files.com builds and sends one message per item, using the values available at that node. After a successful send, the next node receives the same file or data item.

Use an Event Channel subscription when you need to report a Files.com event such as an Automation run failure. The subscription sends the run event even if the run never reached a message action.

Send Chat Message

Choose Slack or Microsoft Teams and select a Token Secret holding the provider's HTTPS incoming webhook URL. Slack has optional channel, sender name, and icon emoji settings. Slack app webhooks use the channel and identity configured in Slack.

Write the message as text with TransformScript expressions in double braces, such as Inventory file ready: {{ attributes.name }}. If a workflow routes ready inventory files to one branch and sends files that need review to another, put Send Chat Message on the ready branch. Connect Copy File after Send Chat Message if you want to archive a copy of each file after the message is sent.

Send Webhook

Use Send Webhook when the receiving application expects a JSON HTTP POST. Set a destination URL or select a Token Secret that holds the URL. Store the URL in a Secret if it contains a credential. The endpoint must meet the outbound endpoint requirements.

Select a Headers Secret if the endpoint requires custom request headers. To sign the request, select a Token Secret that holds a signing key and configure the receiver with the same key. Use the POST branch of the receiver verification example to check X-Files-Signature-V2 against the exact request body before processing it.

If your site has dedicated IP addresses, Send Webhook can use the site's default dedicated addresses so the receiver can allowlist them.

Publish to a Message Broker

Use a publishing action when the receiving application already reads from a queue or topic. Configure the destination on the node and select a Key/Value Secret from the Automation's Workspace.

ActionDestinationKey/Value Secret
Publish to Amazon SNSTopic ARN. A FIFO topic also needs a message group ID.access_key_id and secret_access_key.
Publish to Amazon SQSQueue ARN. A FIFO queue also needs a message group ID.access_key_id and secret_access_key.
Publish to Google Pub/SubGoogle Cloud project ID and Pub/Sub topic ID.Service account credentials, including type set to service_account, client_email, and private_key.
Publish to Azure Service BusNamespace name and queue or topic path.shared_access_key_name and shared_access_key.

Files.com gets the AWS region from the topic or queue ARN. For FIFO topics and queues, a message group ID identifies which messages AWS orders together.

JSON Payload

For Send Webhook and the publishing actions, write a bare TransformScript expression that produces the value the receiver expects. Files.com converts the result to JSON for each item. For example, { path: attributes.path, status: "ready" } could send an inventory loader the path of the file that reached the ready branch. If the current item is a data result, use payload to read its fields.

For Amazon SNS, the subscription's raw message delivery setting determines how supported subscribers receive the JSON.

Checking Delivery

Open Run Detail and select the message node. In Outputs, check the normal output for items that continued. If a destination rejected a message or a Secret was unavailable, check Errors for the failed item and the reason.

The node's Error Handling rules determine what happens to that item. Continue lets the run proceed and sends the failed item down the Error path if a node is connected there. Propagate stops that item's path and causes the run to fail. Other items can still finish. If sending the message is required before the next step, connect that step to the message action's normal output.

A successful send confirms that the destination accepted the message. Check the receiving system for the result of any work it starts. If a retry or rerun sends the message again, the receiving application can use an identifier in the payload to recognize work it already completed. For a workflow with one report per batch, include the batch ID.