Trigger Angie with a prompt
Use sdk.triggerAngie() from your host page to open Angie with a prompt
already in the input — for help buttons, onboarding flows, or deep links.
Call await sdk.waitForReady() before triggering.
1. Programmatic trigger
The most common pattern: your UI calls triggerAngie with a prompt string.
2. Hash deep link
Share a URL with #angie-prompt=… in the hash. Use an in-page link on the
same screen, or open in a new tab when linking from emails, docs, or another page.
Add &angie-new-chat=true to start a fresh chat.
loadSidebarV2() watches the hash on its own: it sends the prompt, then
clears the hash. This page has no hash-handling code of its own.
In this page
New tab
3. Inject context on the fly
Pass a context object to triggerAngie and it rides the next
message under a reserved context.consumer key — so Angie already knows the
value instead of calling a "read current value" tool. Everything you send goes in as-is.
Then ask Angie anything about "this field" — the value is already in
context.consumer.selectedField on the request.
4. Conversation starters at trigger time
Pass suggestions to triggerAngie to set the conversation
starters for the new chat — different entry points can offer different starters,
not only the ones configured at loadSidebar.
5. Status
Last result from the controls above. Hash links are handled inside the SDK, so they do not report here.