| π‘ | Real-time event tracking |
| π§ | LLM context assembly |
| π¬ | Proactive chat + visual triggers |
| ποΈ | User memory & workflow ontology |
The building blocks
Follow the steps in order β each page stands alone so you can ship incrementally.- Connect real-time actions β Stream structured
ActionsPayloadevents into your stack. - Add actions to LLM context β Combine live actions, chat history, and optional KB into one inference-ready context.
- Define proactive triggers β Define when to interrupt, with Agent State v2 gating so proactive delivery stays non-intrusive and non-overlapping.
- Connect relevant visual guidance β Route qualifying proactive outcomes into on-screen tours (chat vs tour vs silence) using your delivery channel.
- Enrich with user memory β Define workflows so Atlas and memory expose completion rates and mastery; then filter with cross-session user memory.
Implementation references
Use these SDK references as you wire the recipe into production:- UserSessionIndex β required for production user-keyed chat so
user_idresolves to the correct recent sessions before Step 2 context assembly. - compose_chat_pipeline(β¦) β compose safe default chat-ingestion wiring in Step 2.
- build_copilot_app(β¦) β stand up a minimal FastAPI bridge when you want an out-of-the-box serving layer.