***

title: getGatherInfo
slug: /reference/typescript/agents/context-builder/get-gather-info
description: Return the gather info for a step.
max-toc-depth: 3
---------------------

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

[step]: /docs/server-sdks/reference/typescript/agents/context-builder/step

Return the gather info configuration for this step, if any. This is an
internal method on [`Step`][step].

## **Parameters**

None.

## **Returns**

`GatherInfo | null` -- The GatherInfo instance, or `null` if not configured.

## **Example**

```typescript {9}
import { ContextBuilder } from '@signalwire/sdk';

const builder = new ContextBuilder();
const ctx = builder.addContext('default');
const step = ctx.addStep('intake');
step.setText('Collect info.');
step.setGatherInfo({ outputKey: 'info' });

console.log(step.getGatherInfo()); // GatherInfo instance
```