Skip to main content
This guide walks you through creating a complete chat flow with the ILLA SDK. The simplest way to build a chat flow is with the IllaSDK class.

1) Initialize the SDK

2) Start a conversation

3) Continue the conversation

4) Retrieve message history

5) Multiple chats

Advanced: Using Chat class

For more control, you can use the lower-level Chat class directly.

1) Initialize the components

2) Send messages

3) Persisted context

The chat automatically persists message history using the ContextManager. You can snapshot or restore it as needed.

4) Long‑running actions (optional)

If your prompts can trigger on-chain actions, add an AsyncToolChecker and use chat.awaitAction or subscribe for progress. See: Awaiting actions & polling