***

title: getQuestions
slug: /reference/typescript/agents/context-builder/get-questions
description: Return all questions in 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 all questions in this gather info operation. This is a method on
`GatherInfo`.

## **Parameters**

None.

## **Returns**

`GatherQuestion[]` -- The array of GatherQuestion instances.

## **Example**

```typescript {7}
import { ContextBuilder, GatherInfo } from '@signalwire/sdk';

const gather = new GatherInfo({ outputKey: 'info' });
gather.addQuestion({ key: 'name', question: 'What is your name?' });
gather.addQuestion({ key: 'email', question: 'What is your email?' });

console.log(gather.getQuestions().length); // 2
```