Diska
Nodes

Custom action

Call an external API at a fixed point of the flow and store the response in a variable.

The Acção personalizada (Custom action) node calls an external API at that point of the flow — for example, to look up an order after collecting its number — and stores the response in a variable.

The node uses an action created under Acções → Acções personalizadas; the action's own fields (URL, method, authentication, messages) are described in Custom actions.

Attaching the action

A new node says "Nenhuma acção anexada a este nó." (No action attached to this node). Click Anexar acção (Attach action), search for the action and pick it. The node card then shows the name, URL and method; the bin icon removes the action.

Action settings

Under Definições da acção (Action settings):

FieldDescription
Mapeamento de input (Input mapping)A JSON object saying which flow variable fills each of the action's inputs: {"input": "flow_variable"}. When you attach the action, its <name> inputs are already listed, with an empty value.
Guardar resultado em (Store result in)Name of the variable where the response is stored (e.g. crm_result), for use in later steps.
TimeoutSeconds to wait for the response, from 1 to 120.

Example, with an action that has the <order_number> input and a flow that collected the order variable:

{ "order_number": "order" }

How the node calls the API

The node sends the request to the action's URL, with the method and headers the action had when you attached it. The request body is a JSON object with the Mapeamento de input values and the action's identification (action_id and label).

The node keeps a copy of the action (URL, method, headers) from the moment you attach it. If you later change the action under Acções, attach it to the node again and publish the flow.

For the agent to use the full action — with the configured request body, authentication and messages — and decide on its own when to call it, attach it under Acções on a Conversation node.

Outputs

OutputWhen
Sucesso da acção (Action success)The API responded successfully.
Falha da acção (Action failure)The API responded with an error or the request was refused (for example, a private-network URL).

In the Testar (Test) panel, with the draft the request is simulated and the flow takes Sucesso da acção; with the published version, the API is called.

Validation

  • Error if no action is attached ("Este nó não tem nenhuma acção anexada" — this node has no action attached).
  • Error if the URL is missing.
  • Error if the timeout is outside 1–120 seconds.
Copyright © 2026