# Glossary of Blocks

## When I hear

<div align="center"><img src="/files/-LyVNWofQ6Bk6NrcNzUS" alt=""></div>

| **Block** | When I hear                                                                                                                                       |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| Category  | Listen                                                                                                                                            |
| Action    | The 'When I hear' block is basic block that enables Chatterbox to listen for a specific phrase, then execute the code contained inside the block. |

Example Skill:&#x20;

<div align="center"><img src="/files/-LyVPJ9Wxdkkn6m2sB-t" alt="When Chatterbox hears &#x22;hello,&#x22; it will speak &#x22;hello world&#x22;"></div>

## Speak

![](/files/-LyVORHKhcXio4-HcEKB)

**`Block:` Speak**\
\&#xNAN;**`Category:` Speak**\
\&#xNAN;**`Action:`**`The 'Speak' block is a basic block that makes Chatterbox speak whatever is contained in the text block.`

Example Skill:

![When Chatterbox hears "hello," it will speak "hello world"](/files/-LyVS95BQsjgiCo7zcf4)

## Speak Random

![](/files/-LyVSlw0Ex27S1za4w2r)

**Block**: Speak Random\
**Category:** Speak\
**Action:** The 'Speak Random' block is similar to the speak block but will randomly speak only one of the contained phrases.

Example Skill:

![When Chatterbox hears "flip a coin," it will say "heads" or "tails"](/files/-LyVTc2Vli8IZLbEArj1)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chatterbox.gitbook.io/chatterbox/glossary-of-terms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
