# Bots resource

Canonical page: https://docs.ovok.com/flutter-sdk/reference/ovok_sdk/bots-resource

{/* Generated by scripts/generate_reference.dart; do not edit. */}

## BotsResource [#botsresource]

```dart
class BotsResource
```

Project bots. Reached through `ovok.bots`.

Every request throws an `OvokException` subclass when it fails.

### Constructors [#constructors]

#### BotsResource.new [#botsresourcenew]

```dart
BotsResource(HttpClient _http)
```

Built by `Ovok`; use `ovok.bots` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods]

#### BotsResource.execute [#botsresourceexecute]

```dart
Future<JsonMap> execute(String identifier, JsonMap input)
```

Executes a bot with `input` and returns its output.

Calls `POST bots?identifier={identifier}`; `identifier` is the bot's
"system|value" identifier.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `identifier` | `String` | positional |  |
| `input` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.
