AI Widgets
Embeddable AI tools for your site or your clients' sites. Calculators, qualifiers, recommenders, and assessments that give visitors a real answer and hand you a qualified lead. Built as a self-contained widget with your API costs capped and every interaction tracked.
What's included
Build
- Widget scoped to one specific job, decided in a short discovery call before anything gets built
- Custom React or vanilla JS component that embeds with a single script tag, with an iframe option if you want isolation
- Server-side API proxy so your keys never reach the browser
- Streaming responses, so the widget shows output as it generates instead of spinning for eight seconds
- Structured output where the answer drives the interface, using JSON parsed into components rather than a wall of text
- Mobile layout and dark mode handling
- Fallback behavior for API failures, rate limits, and timeouts, so the widget degrades instead of disappearing
Prompt and model work
- Prompt design and iteration against real inputs from your audience
- Model selection based on what the task actually needs, since most widgets run fine on a fast cheap model
- Guardrails against off-topic use and prompt injection, including the people who will try to get free homework help out of your ROI calculator
- Input validation and output constraints so the widget can't say something that creates a problem for you
- Caching on repeated inputs to cut cost
Lead capture and data
- Gated results, progressive capture, or fully open, depending on what your funnel needs
- Lead push into HubSpot, Zoho, or whatever CRM you run, with UTM values and click IDs preserved
- Event tracking into GA4 and PostHog covering starts, completions, drop-off by step, and submissions
- Conversion event wired to your ad platforms so paid traffic can optimize toward it
Operations
- Rate limiting per session and a monthly spend cap
- Abuse protection and bot filtering
- Admin view for prompt changes without a redeploy
- White-label build if you're deploying this under your own brand across client sites
Why it matters
Most AI widgets on marketing sites are chatbots wearing a costume. They take an input, produce a paragraph, and give the visitor nothing they couldn't have found in ten seconds elsewhere. The ones that work are narrow. A pricing estimator that asks four questions and returns a number. A qualifier that tells someone quickly whether your service fits their situation. An assessment that scores their setup and shows what's broken.
The specificity is what makes the lead worth having. Someone who answered six questions about their ad spend before handing over an email is a different prospect from someone who downloaded a PDF. Tracking matters as much as the build here, because a widget you can't measure is a demo you're paying to host.
What clients say
“Finding SmartMetrics was a real relief – as a research and education institute with a somewhat unconventional focus within Google Analytics, we previously struggled to find an online training program or consultant that could help us. SmartMetrics helped us to review our entire GA4 setup, and finalized multiple dashboards that addressed our subdomain website complications and redesigned our PDF download tracking. Tomas was clear, communicative and efficient, and took time to provide helpful advice at every stage of the project. We would definitely choose SmartMetrics again for future GA4 improvements.”
Micah Greyeyes
Yellowhead
“Thomas from SmartMetrics is not only easy to work with but is a wealth of knowledge. Thank you, Thomas!”
SmartWatt Marketing
“Thomas and the team at SmartMetrics did a fantastic job for us. We needed a complex cross-domain and cross-platform analytics and e-commerce tracking implementation, and they delivered on time and on budget. Great communication, too!”
Adam Sieminski
Custom Project
Need a custom project?
Let's talk.
Not every project fits a fixed price. Tell us what you need — we'll scope it out and get back to you within 24 hours with a clear proposal.
- Free scoping call — no commitment
- Fixed-price or retainer options available
- Transparent deliverables & timeline

Work with Tomas
Lead Generation Expert