Module: Function return
The function return block closes the execution of a function flow and defines what happens next.
- Inside a function flow, after your logic blocks, drag the Function return block onto the builder panel.
- Connect the previous block to the Function return input.
- In Return type, choose:
- End agent flow — ends the process. - Return flow to agent — sends data back to the agent that called the function.
- In Return message, enter the text or variable to return (e.g.
@http.body). - Enable Send return message after processing if you want the content delivered to the user.
- 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.