Enhancements
Default Color SchemeCopied!
You can set the default color scheme (light or dark mode).
Enable Toggling Color SchemeCopied!
Allow users to switch between light and dark mode by enabling this option.
Display Remaining PromptsCopied!
You can paywall users by adding daily or monthly prompt limit. If this is toggled to true, users will see how many prompts they have left for this day or month.
Post MessagesCopied!
Enabling post message events allows the iframe to communicate with the site it’s embedded on by sending specific messages. Below are the supported events and their corresponding message formats:
Supported Events
Prompt Sent: This event is triggered when a user sends a prompt.
{
"type": "UserAction",
"action": "PromptSent",
"data": {"query": ${query}}
}
Color Toggle: This event is triggered when a user toggles the color scheme.
{
"type": "UserAction",
"action": "ColorSchemeToggle",
"data": {
"newColorScheme": ${colorScheme}
}
}
Screener Company Clicked: This event is triggered when a user clicks on a company name in the screener.
{
"type": "UserAction",
"action": "CompanyScreener",
"data": {
"exchangeCode": ${exchangeCode},
"ticker": ${companyTicker}
}
}