Help/Artificial intelligence

Module: Function return

The function return block closes the execution of a function flow and defines what happens next.

  1. Inside a function flow, after your logic blocks, drag the Function return block onto the builder panel.
  2. Connect the previous block to the Function return input.
  3. In Return type, choose:

- End agent flow — ends the process. - Return flow to agent — sends data back to the agent that called the function.

  1. In Return message, enter the text or variable to return (e.g. @http.body).
  2. Enable Send return message after processing if you want the content delivered to the user.
  3. Enable Send as whisper if the message is an internal note visible only to agents.

Block fields:

  • Menu name — identifies the block in the flow.
  • Return type — Return flow to agent or End agent flow.
  • Return message — fixed text or dynamic variable.
  • Send return message after processing — toggle.
  • Send as whisper — toggle.

A function flow without this block will loop indefinitely waiting for a conclusion. This block does not work in regular agent flows.