Using TruGen.AI Developer Platform, generate an API key from our developers page.
Set the newly generated API key as apiKey variable in the widget script configuration.
apiKey: "x-api-key,
3
Configuring your widget
Just above the imported js file script tag, you can configure widget as follows
<script> window.TrugenWidget = { agentName: "Your agent name", // This is the agent name thats displayed in the widget agentId: "Your agent id", // copy your agent id from agents library or create a new agent and copy the id apiKey: "x-api-key", heading: "Main heading of widget", subHeading: "Sub heading of widget", logoUrl: "logo_url_to_display", displayAvatarUrl: "avatar image url to dispaly in widget bubble" };</script><script src="https://dist.trugen.ai/trugen-chat.js"></script>