Server SDKs
Build AI agents, control calls, send messages, and more
Return all questions in this gather info operation. This is a method on GatherInfo.
GatherInfo
None.
GatherQuestion[] — The array of GatherQuestion instances.
GatherQuestion[]
1import { ContextBuilder, GatherInfo } from '@signalwire/sdk';23const gather = new GatherInfo({ outputKey: 'info' });4gather.addQuestion({ key: 'name', question: 'What is your name?' });5gather.addQuestion({ key: 'email', question: 'What is your email?' });67console.log(gather.getQuestions().length); // 2