***

title: fallbackOutput
slug: /reference/typescript/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/typescript/agents/data-map

[ref-functionresult]: /docs/server-sdks/reference/typescript/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**

```typescript {6}
import { DataMap, FunctionResult } from '@signalwire/sdk';

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