Widgets
Have Ruley manage your AI widget and avoid timely development and maintenance costs.
Our widgets are designed to be responsive, customizable, and easy to integrate. They handle all the communication with the Ruley API, so you don't have to worry about managing state or handling API responses.
Before you begin
Before integrating a widget, you must whitelist your domain on your dashboard page. This links your domain to your subscription and ensures the widget functions correctly on your site.
The easiest way to integrate a Ruley widget is by using an iframe. This allows you to host the widget on your site without any complex JavaScript integration.
<iframe
src="https://ruley.ai/embed/is-that-a-penalty"
width="100%"
height="600"
frameborder="0"
title="Ruley Widget"
></iframe>Widgets can be customized via URL parameters when using an iframe, or via props when using the React component.
theme: light, dark, or systemprimaryColor: Hex code for the primary brand colorinitialMessage: The first message the AI sends
Live Preview
Is that a Penalty? - Golf Rule Checker
Powered by Ruley API
