***

title: getCompletionAction
slug: /reference/typescript/agents/context-builder/get-completion-action
description: Return the completion action for a gather info operation.
max-toc-depth: 3
---------------------

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

Return the completion action for this gather info. This is an internal method
on `GatherInfo`.

## **Parameters**

None.

## **Returns**

`string | undefined` -- The completion action string, or `undefined` if not set.

## **Example**

```typescript {5}
import { GatherInfo } from '@signalwire/sdk';

const gather = new GatherInfo({ completionAction: 'next_step' });

console.log(gather.getCompletionAction()); // "next_step"
```