Skip to content

AskResult

Defined in: core/src/ask.ts:95

answer: string

Defined in: core/src/ask.ts:98

The answer, or the text received before the call stopped.


optional campaign?: object

Defined in: core/src/ask.ts:105

The campaign the answer is about, when there is one.

id: string

name: string

url: string


optional error?: string

Defined in: core/src/ask.ts:119

The edge’s error message, when it sent one.


followUps: string[]

Defined in: core/src/ask.ts:101

Suggested next questions. Empty when there are none.


optional homeCampaignId?: string

Defined in: core/src/ask.ts:111

The campaign the conversation is grounded in, which stays the same when an answer recommends another campaign. Pin this, not campaign.id, to continue the thread.


links: AskLink[]

Defined in: core/src/ask.ts:99


ok: boolean

Defined in: core/src/ask.ts:96


optional reason?: AskFailureReason

Defined in: core/src/ask.ts:115

Set when ok is false.


session: string

Defined in: core/src/ask.ts:103

Send this back as session to continue the conversation. Empty when there is none.


optional status?: number

Defined in: core/src/ask.ts:117

The HTTP status, when the edge answered.


optional truncated?: boolean

Defined in: core/src/ask.ts:113

The answer was cut off upstream. It is usable but may be incomplete.