Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Examples index

Runnable walkthroughs organized by difficulty. Each example has an overview plus language-specific code for JavaScript/TypeScript, Dart/Flutter, and Python.

By difficulty

Example
Level
Transport
What you learn

Intermediate

http

Simple sendAI prompt and response

Advanced

http

Index documents, search, answer with useKnowledgeBase

Advanced

http

Agents, workflow routing, observability

Advanced

http

tools.register + runAgent (under Workflows)

Advanced

http

mcp.connect + tool agent (under Workflows)

Intermediate

ws

Two-user chat pattern with history

Beginner

ws

Connect, send one text message, receive on onMessage

Beginner

ws

Auto-reply when a message arrives

Language pages

Every example includes:

Prerequisites

  1. Create an app and copy credentials

Reference

Last updated