<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [RelatedPromptsActions](./x-components.relatedpromptsactions.md) &gt; [fetchRelatedPrompts](./x-components.relatedpromptsactions.fetchrelatedprompts.md)

## RelatedPromptsActions.fetchRelatedPrompts() method

Requests a new set of related prompts for the module query, and returns them.

**Signature:**

```typescript
fetchRelatedPrompts(request: RelatedPromptsRequest | null): RelatedPrompt[] | null;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  request | RelatedPromptsRequest \| null | The related prompts request. |

**Returns:**

RelatedPrompt\[\] \| null

