This guide shows you how to integrate the Sunny Agents SDK into your application using createSunnyChat.
Sign in to Sunny Central (or staging) and go to Developer Tools. Create an API key and note your partner name. See Partner Setup for details.
Choose the authentication mode that fits your application:
Custom Token Exchange:
createSunnyChat returns a VanillaChatInstance with these members:
Use the client property for programmatic access:
Customize the widget’s appearance:
By default the widget renders a collapsed trigger bar that opens a modal. Switch to a full-panel concierge layout with intro copy, prompt chips, and an inline trigger by setting displayMode: "concierge":
Each suggestion entry is either a plain string (used as both label and prompt) or a VanillaChatPromptSuggestion: