<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [RelatedPromptsMutations](./x-components.relatedpromptsmutations.md) &gt; [setRelatedPromptsProducts](./x-components.relatedpromptsmutations.setrelatedpromptsproducts.md)

## RelatedPromptsMutations.setRelatedPromptsProducts() method

Sets the related prompts of the module.

**Signature:**

```typescript
setRelatedPromptsProducts(products: RelatedPrompt[]): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  products | RelatedPrompt\[\] | The new related prompts to save to the state. |

**Returns:**

void

