***

title: fallback_output
slug: /reference/python/agents/data-map/fallback-output
description: Set the top-level fallback output used when no webhook or expression matches.
max-toc-depth: 3
---------------------

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

[ref-datamap]: /docs/server-sdks/reference/python/agents/data-map

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

Set a top-level fallback output used when no webhook or expression matches.

## **Parameters**

<ParamField path="result" type="FunctionResult" required={true} toc={true}>
  A [`FunctionResult`][ref-functionresult] defining the fallback response.
</ParamField>

## **Returns**

[`DataMap`][ref-datamap] -- Self for method chaining.

## **Example**

```python {6}
from signalwire import DataMap, FunctionResult

dm = DataMap("get_weather")
dm.webhook("GET", "https://api.weather.com/v1/current?q=${args.city}")
dm.output(FunctionResult("Weather: ${response.current.condition.text}"))
dm.fallback_output(FunctionResult("Weather service is currently unavailable."))
```