Configure chat mode, chat-only embeds, calendar widgets, form widgets, and chat assistant prompts.
The Ringg widget supports text-based chat alongside voice calls. In chat mode, users type messages while the same assistant can still use configured tools, knowledge base queries, callback scheduling, and form widgets.
Create a dedicated assistant for chat by cloning your voice assistant. Chat conversations are usually longer and benefit from prompts that allow structured answers, concise markdown, and clear widget handoffs.
1
Clone or create an assistant
Open the Ringg AI dashboard, go to assistants, and clone an existing voice assistant or create a new Webcall assistant for chat.
2
Tune the prompt for text
Update the assistant prompt for chat-style responses. Include when to answer directly, when to collect details, and when to present widgets.
3
Configure chat-specific tools
Add calendar widgets for callback scheduling, form widgets for data collection, or any API integrations the chat should use.
4
Use the chat assistant ID
Use the cloned assistant’s agentId in the embed code and set defaultTab to "text".
Chat widgets are interactive UI components the assistant can present during a conversation. They render inside the chat interface so users can schedule callbacks, submit forms, or book appointments without leaving the widget.
Chat widgets work best in text mode. They can also be triggered during voice calls, but visual interaction is most natural in the chat interface.
The widget flow is:
The assistant decides a widget is needed and calls the send_widgets tool.
The widget renders inside the chat.
The user selects a time slot or submits form data.
The response is sent back to the assistant automatically.
The assistant confirms the action and can trigger an API call if api_config is provided.
Use the calendar widget for callback scheduling, demo booking, consultations, or follow-up appointments. Past slots are excluded so users see valid options.
The required tool_type value is calender_widget_tool. Use that exact spelling in widget metadata.
Field
Type
Required
Description
tool_type
string
Yes
Must be "calender_widget_tool".
tool_id
string
Yes
Unique identifier for this widget instance.
slot_duration_days
integer
Yes
Number of days to show slots for, such as 7.
slot_interval_minutes
integer
Yes
Minutes between each slot, such as 30.
start_time_24_hour_format
string
Yes
Slot start time in HH:MM format, such as "09:00".
end_time_24_hour_format
string
Yes
Slot end time in HH:MM format, such as "17:00".
timezone
string
Yes
IANA timezone, such as "Asia/Kolkata".
api_config
object
No
Optional API call made when the user selects a slot.
When a user schedules a callback, the selected datetime and timezone are sent back to the assistant. If api_config is provided, the booking data is forwarded to your API.
When the user submits the form, the collected data is sent back to the assistant. If api_config is provided, the data is also forwarded to your API endpoint.
Use the CDN loader from the quickstart, then load the chat assistant with chat-only mode and optional branding.
loadAgentsCdn("latest", function () { loadAgent({ agentId: "your-chat-agent-id", xApiKey: "your-api-key", defaultTab: "text", hideTabSelector: true, title: "Support Chat", description: "Hi! I can help you schedule a callback or answer your questions.", logoUrl: "https://example.com/your-logo.svg", buttons: { modalTrigger: { styles: { backgroundColor: "#4F46E5", }, icon: { url: "https://example.com/chat-icon.svg", size: 24, }, }, }, feedbackScreen: { title: "How was your chat?", description: "Your feedback helps us improve!", submitBtnCTA: "Submit", }, });});
Calendar and form widgets are configured in the assistant metadata through the Ringg AI dashboard. No additional frontend code is needed for the widgets themselves.
You are a friendly support assistant for [Company Name]. You help users withtheir questions and can schedule callbacks with our team.Guidelines:- Greet the user warmly and ask how you can help.- Answer questions using the knowledge base when available.- If the user wants to speak to a human agent, schedule a call, or book a demo, present the calendar widget so they can pick a convenient time slot.- After the user selects a time slot, confirm the booking with the date, time, and timezone in a clear, human-readable format.- Keep responses concise and conversational. This is a chat, not an email.
You are a lead qualification assistant for [Company Name]. Your goal is tounderstand the user's needs and collect their contact information.Guidelines:- Start by understanding what the user is looking for.- Once you have enough context about their needs, present the contact form widget to collect their details: name, email, phone, and preferred plan.- After the form is submitted, thank the user and let them know a team member will follow up shortly.- Do not ask for information that the form will collect. Let the form handle it.
You are a customer support assistant for [Company Name]. You can help userswith questions, collect information, and schedule callbacks.Guidelines:- Greet the user and ask how you can help.- For general questions, answer directly using available knowledge.- If the user needs to speak with a human agent or wants a demo, present the calendar widget to schedule a callback.- If the user wants to submit a request, provide feedback, or share details, present the form widget to collect their information.- Always confirm the action after a widget interaction, such as "Your callback is booked for Tuesday at 2:00 PM" or "Thanks, we have received your details."- Keep responses short and friendly.