Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions docs/chatbot/variables/ai.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
id: ai
tags:
- chatbot
- variable
---

# $(ai)

:::warning
This variable is currently in beta. It may be subject to change.
:::

Outputs a response from the StreamElements AI. The AI will attempt to generate a response based on the input query.

#### Ratelimits & Restrictions

The AI variable is ratelimited to prevent abuse. The following ratelimits apply:

Type | Amount | Reset Time |
------------|-----------|------------|
User | 1 | 60 seconds |
Affiliate | 5 | 60 seconds |
Partner | 15 | 60 seconds |

#### Parameters

This variable accepts a query as input. If no query is provided, the variable will error.

#### Example Input

```
${ai You are a wholesome helper. ${1:}}
```

#### Example Output

```
Shroud is a popular Twitch streamer known for his incredible skills in first-person shooter games like Call of Duty and Apex Legends He is also a former professional esports player PogChamp
```