> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# IUseDashboardCopilotResult

- Package: [@gooddata/sdk-ui-gen-ai](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/index.md)
- Kind: interface
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.71/libs/sdk-ui-gen-ai/src/copilot/useDashboardCopilot.ts
- Guides: [AI Assistant](https://www.gooddata.ai/docs/gooddata-ui/latest/ai-modules/ai-assistant/index.md)

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Props and actions connecting one dashboard to a shared assistant store.

**Signature:**

```typescript
export interface IUseDashboardCopilotResult 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [assistantProps](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.iusedashboardcopilotresult/index.md#iusedashboardcopilotresultassistantprops) |  | (props?: [GenAIAssistantProps](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.genaiassistantprops/index.md)) =&gt; [GenAIAssistantProps](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.genaiassistantprops/index.md) | **_(ALPHA)_** Get props for the assistant inside the shared GenAiStore. Keeps dashboardSelector controlled by the hook to maintain ambient context; other props pass through unchanged. Attach chat event handlers to the outer store using genAiStoreProps. Call without arguments for defaults. |
| [cancelGeneration](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.iusedashboardcopilotresult/index.md#iusedashboardcopilotresultcancelgeneration) |  | () =&gt; void | **_(ALPHA)_** Prevent new definition applications for pending dashboard creation or edits and clear persistent AI mode. |
| [composingProps](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.iusedashboardcopilotresult/index.md#iusedashboardcopilotresultcomposingprops) |  | Omit&lt;[ICopilotInteractionComposingWithHandlerProps](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.icopilotinteractioncomposingwithhandlerprops/index.md), "children"&gt; | **_(ALPHA)_** Pass to CopilotInteractionComposingWithHandler around the dashboard. |
| [copilot](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.iusedashboardcopilotresult/index.md#iusedashboardcopilotresultcopilot) |  | [CopilotHandler](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.copilothandler/index.md) | **_(ALPHA)_** Hook-owned workflow handler, also usable by custom progress presentations. |
| [dashboardProps](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.iusedashboardcopilotresult/index.md#iusedashboardcopilotresultdashboardprops) |  | (props?: [IDashboardProps](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idashboardprops/index.md)) =&gt; [IDashboardProps](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idashboardprops/index.md) | **_(ALPHA)_** Get props for Dashboard. Appends application event handlers after internal handlers and calls the internal onStateChange before the application callback. Merges config while keeping aiMode controlled by the copilot. After a definition is applied, AI mode stays active until a successful save, cancellation, or dashboard disconnection. Work ending without an applied definition clears AI mode; other props pass through unchanged. Call without arguments for defaults. |
| [genAiStoreProps](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.iusedashboardcopilotresult/index.md#iusedashboardcopilotresultgenaistoreprops) |  | (props?: Omit&lt;[GenAiStoreProps](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.genaistoreprops/index.md), "children"&gt;) =&gt; Omit&lt;[GenAiStoreProps](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.genaistoreprops/index.md), "children"&gt; | **_(ALPHA)_** Get props for the outer GenAiStore, not the nested assistant. Appends application event handlers after internal handlers and calls the internal onDispatcher before the application callback. Other props pass through unchanged. Call without arguments for the default connection. |
| [generateDashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.iusedashboardcopilotresult/index.md#iusedashboardcopilotresultgeneratedashboard) |  | (message: string) =&gt; void | **_(ALPHA)_** Start a new conversation and generate into a new, empty dashboard in edit mode. Dashboard building must be enabled by the integrator. Generation progress is cancelled if an assistant message identifies an agent without any registered dashboard skills; chat continues normally. |
| [replyInChat](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.iusedashboardcopilotresult/index.md#iusedashboardcopilotresultreplyinchat) |  | () =&gt; void | **_(ALPHA)_** Select the waiting workflow's originating conversation in the shared assistant. |
| [sendMessage](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-gen-ai/sdk-ui-gen-ai.iusedashboardcopilotresult/index.md#iusedashboardcopilotresultsendmessage) |  | (message: string) =&gt; void | **_(ALPHA)_** Send a message in the current conversation. Ignored until the shared store is ready. |

## Property details

### IUseDashboardCopilotResult.assistantProps

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Get props for the assistant inside the shared GenAiStore. Keeps dashboardSelector controlled by the hook to maintain ambient context; other props pass through unchanged. Attach chat event handlers to the outer store using genAiStoreProps. Call without arguments for defaults.

**Signature:**

```typescript
assistantProps: (props?: GenAIAssistantProps) => GenAIAssistantProps;
```

### IUseDashboardCopilotResult.cancelGeneration

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Prevent new definition applications for pending dashboard creation or edits and clear persistent AI mode.

**Signature:**

```typescript
cancelGeneration: () => void;
```

#### Remarks

Does not stop the assistant stream or undo applied changes. A definition application already started is not interrupted and may still complete or be acknowledged after cancellation.

### IUseDashboardCopilotResult.composingProps

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Pass to CopilotInteractionComposingWithHandler around the dashboard.

**Signature:**

```typescript
composingProps: Omit<ICopilotInteractionComposingWithHandlerProps, "children">;
```

### IUseDashboardCopilotResult.copilot

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Hook-owned workflow handler, also usable by custom progress presentations.

**Signature:**

```typescript
copilot: CopilotHandler;
```

### IUseDashboardCopilotResult.dashboardProps

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Get props for Dashboard. Appends application event handlers after internal handlers and calls the internal onStateChange before the application callback. Merges config while keeping aiMode controlled by the copilot. After a definition is applied, AI mode stays active until a successful save, cancellation, or dashboard disconnection. Work ending without an applied definition clears AI mode; other props pass through unchanged. Call without arguments for defaults.

**Signature:**

```typescript
dashboardProps: (props?: IDashboardProps) => IDashboardProps;
```

### IUseDashboardCopilotResult.genAiStoreProps

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Get props for the outer GenAiStore, not the nested assistant. Appends application event handlers after internal handlers and calls the internal onDispatcher before the application callback. Other props pass through unchanged. Call without arguments for the default connection.

**Signature:**

```typescript
genAiStoreProps: (props?: Omit<GenAiStoreProps, "children">) => Omit<GenAiStoreProps, "children">;
```

### IUseDashboardCopilotResult.generateDashboard

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Start a new conversation and generate into a new, empty dashboard in edit mode. Dashboard building must be enabled by the integrator. Generation progress is cancelled if an assistant message identifies an agent without any registered dashboard skills; chat continues normally.

**Signature:**

```typescript
generateDashboard: (message: string) => void;
```

### IUseDashboardCopilotResult.replyInChat

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Select the waiting workflow's originating conversation in the shared assistant.

**Signature:**

```typescript
replyInChat: () => void;
```

### IUseDashboardCopilotResult.sendMessage

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Send a message in the current conversation. Ignored until the shared store is ready.

**Signature:**

```typescript
sendMessage: (message: string) => void;
```
