# useAsk

> **useAsk**(`options?`): [`UseAskResult`](https://docs.sparkletree.io/developers/api/react/interfaces/useaskresult.md)

Defined in: react/src/useAsk.ts:82

One conversation with the assistant. The session is kept between
questions, so a follow-up continues the thread; `reset()` starts a new
one. The answer streams: `answer` grows while `status` is `streaming`.
The running question is stopped when a new one starts and when the
component unmounts.

The answer is data. Where you render it, give it a space of its own (a
panel or a dialog), since it grows as it is written.

## Parameters

### options?

[`UseAskOptions`](https://docs.sparkletree.io/developers/api/react/interfaces/useaskoptions.md) = `{}`

## Returns

[`UseAskResult`](https://docs.sparkletree.io/developers/api/react/interfaces/useaskresult.md)
