> ISPO SDK documentation. [HTML](https://ispo.ai/docs/interfaces/core.Supporting_types.AssistantActionsApi.html) · [Documentation index](https://ispo.ai/docs/llms.txt)

# Interface AssistantActionsApi

```typescript
interface AssistantActionsApi {
    handle(actionId: string, handler: AssistantActionHandler): () => void;
    replace(actions: AssistantActionDescriptor[]): void;
}
```

Types: [handle](#handle-1), [AssistantActionHandler](../types/core.AssistantActionHandler.md), [replace](#replace-1), [AssistantActionDescriptor](core.AssistantActionDescriptor.md)

##### Index

### <a id="methods"></a>Methods

[handle](#handle) [replace](#replace)

## <a id="methods-1"></a>Methods

### <a id="handle"></a>handle

*   <a id="handle-1"></a>
    
    ```typescript
    handle(actionId: string, handler: AssistantActionHandler): () => void
    ```
    
    Types: [AssistantActionHandler](../types/core.AssistantActionHandler.md)
    
    #### Parameters
    
    *   actionId: string
    *   handler: [AssistantActionHandler](../types/core.AssistantActionHandler.md)
    
    #### Returns () \=> void
    

### <a id="replace"></a>replace

*   <a id="replace-1"></a>
    
    ```typescript
    replace(actions: AssistantActionDescriptor[]): void
    ```
    
    Types: [AssistantActionDescriptor](core.AssistantActionDescriptor.md)
    
    #### Parameters
    
    *   actions: [AssistantActionDescriptor](core.AssistantActionDescriptor.md)\[\]
    
    #### Returns void
