***

title: add_actions
slug: /reference/python/agents/function-result/add-actions
description: Append multiple raw actions to the FunctionResult action list.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[functionresult]: /docs/server-sdks/reference/python/agents/function-result

Append multiple raw actions at once. Each action dictionary is added to the
action list in order.

## **Parameters**

<ParamField path="actions" type="list[dict[str, Any]]" required={true} toc={true}>
  List of action dictionaries to append. Each dictionary should map a single
  action name to its payload.
</ParamField>

## **Returns**

[`FunctionResult`][functionresult] — self, for chaining.

## **Example**

```python {11}
from signalwire import AgentBase
from signalwire import FunctionResult

agent = AgentBase(name="my-agent", route="/agent")
agent.set_prompt_text("You are a helpful assistant.")

@agent.tool(name="batch_actions", description="Process multiple actions at once")
def batch_actions(args, raw_data):
    return (
        FunctionResult("Processing your request.")
        .add_actions([
            {"set_global_data": {"key": "value"}},
            {"hold": 60},
            {"say": "Please wait."}
        ])
    )

agent.serve()
```