<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [UrlMutations](./x-components.urlmutations.md) &gt; [setPrompt](./x-components.urlmutations.setprompt.md)

## UrlMutations.setPrompt() method

Sets the related prompt.

**Signature:**

```typescript
setPrompt(prompt: number): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  prompt | number | The new related prompt index of the URL. |

**Returns:**

void

