# AskResult

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

## Properties

### answer

> **answer**: `string`

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

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

***

### campaign?

> `optional` **campaign?**: `object`

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

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

#### id

> **id**: `string`

#### name

> **name**: `string`

#### url

> **url**: `string`

***

### error?

> `optional` **error?**: `string`

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

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

***

### followUps

> **followUps**: `string`[]

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

Suggested next questions. Empty when there are none.

***

### homeCampaignId?

> `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

> **links**: [`AskLink`](https://docs.sparkletree.io/developers/api/react/interfaces/asklink.md)[]

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

***

### ok

> **ok**: `boolean`

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

***

### reason?

> `optional` **reason?**: [`AskFailureReason`](https://docs.sparkletree.io/developers/api/react/type-aliases/askfailurereason.md)

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

Set when `ok` is false.

***

### session

> **session**: `string`

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

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

***

### status?

> `optional` **status?**: `number`

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

The HTTP status, when the edge answered.

***

### truncated?

> `optional` **truncated?**: `boolean`

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

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