Quickstart
This guide shows you how to integrate the Sunny Agents SDK into your application using createSunnyChat.
Quick start
Get your credentials
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.
Authentication options
Choose the authentication mode that fits your application:
Custom Token Exchange:
Return value
createSunnyChat returns a VanillaChatInstance with these members:
Programmatic control
Use the client property for programmatic access:
Customization
Customize the widget’s appearance:
Concierge mode
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: