## MedplumClient.executeBot() method

Executes a bot by ID or Identifier.

**Signature:**

```typescript
executeBot(idOrIdentifier: string | Identifier, body: any, contentType?: string, options?: MedplumRequestOptions): Promise<any>;
```

## Parameters

| Parameter         | Type                             | Description                                                  |
|-------------------|----------------------------------|--------------------------------------------------------------|
| idOrIdentifier    | string \| Identifier            | The Bot ID or Identifier.                                    |
| body              | any                              | The content body. Strings and `File` objects are passed directly. Other objects are converted to JSON. |
| contentType       | string                           | _(Optional)_ The content type to be included in the "Content-Type" header. |
| options           | [MedplumRequestOptions](/content/docs/sdk/core.medplumrequestoptions) | _(Optional)_ Optional fetch options.                         |

**Returns:**

Promise<any>

The Bot return value.

- [MedplumClient.executeBot() method](/content/docs/sdk/core.medplumclient.executebot#medplumclientexecutebot-method/index.html)
- [Parameters](/content/docs/sdk/core.medplumclient.executebot#parameters/index.html)
