Quickstart
Get up and running with the Sunny Agents SDK in minutes
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:
React example
ChatWidget.tsx