Widget Setup

NodeLoom widgets let you embed AI-powered chat interfaces on any website. Each widget connects to a workflow containing AI Agent nodes, inheriting all the tools and capabilities configured in that workflow.

Creating a Widget

Widgets are created from the NodeLoom dashboard. Navigate to Settings → Widgets and click Create Widget. You will be prompted to configure the following:

FieldDescription
Widget nameA descriptive name for internal identification (not visible to end users).
Connected workflowThe workflow that handles widget messages. Must contain at least one AI Agent node.
Welcome messageThe initial message displayed when a visitor opens the widget.
Input placeholderPlaceholder text shown in the chat input field.

AI Agent requirement

The connected workflow must include at least one AI Agent node. The widget sends visitor messages to this agent, which processes them using the tools and instructions configured in the workflow.

Workflow Connection

When you connect a widget to a workflow, the widget inherits the full tool access of that workflow's AI Agent. This means if your workflow's agent has access to a database query tool, an API integration tool, or a knowledge base search tool, the widget visitor can interact with all of those capabilities through the chat interface.

You can change the connected workflow at any time. The widget will immediately start using the new workflow for all subsequent messages. Existing conversation history is preserved.

Colors and Branding

Each widget can be customized to match your brand. The following visual properties are configurable from the dashboard:

PropertyDescription
Primary colorUsed for the header background, send button, and accent elements.
Background colorThe chat window background color.
Text colorPrimary text color for messages and UI elements.
Agent message backgroundBackground color for messages from the AI agent.
User message backgroundBackground color for messages from the visitor.
LogoA custom logo displayed in the chat header.
PositionWidget button placement: bottom-right or bottom-left of the page.

Token Authentication

Each widget is assigned a unique authentication token. This token is embedded in the script tag on your website and identifies which widget configuration and workflow to use.

Widget embed snippet
<script
  src="https://your-instance.nodeloom.io/widget/embed.js"
  data-widget-token="<your-widget-token>"
  async>
</script>

Token visibility

Widget tokens are visible in your page source. They are designed to identify the widget and enforce rate limits, not to protect sensitive data. Use guardrails and RBAC to control what the connected workflow can access.

Rate Limiting

Each widget has configurable rate limits to prevent abuse. Rate limits are enforced per widget token and can be adjusted from the widget settings page.

LimitDefaultConfigurable
Messages per minute (per visitor)20Yes
Messages per hour (per visitor)200Yes
Concurrent sessions per widget100Yes
Max message length4,000 charactersYes

When a rate limit is exceeded, the widget displays a friendly message asking the visitor to wait before sending more messages. Rate limit events are logged in the widget analytics dashboard.

Monitoring usage

Check the widget analytics page for real-time usage metrics including active sessions, message volume, and rate limit hits. This helps you tune rate limits for your traffic patterns.