Skip to content

⚠️ Recent Visits is in beta. All listings and data shown are for demonstration purposes only and do not represent real or verified information. Tour listings are based on content from partner agencies’ websites and have not yet been confirmed by the agencies.

Recent Visits

SDK and developer guide

Add your agency's own assistant, tour list and quote form to your website with the Recent Visits widget. Overview, how it works, and where to start.

On this page

The Recent Visits website widget puts a chat assistant, your published tours and a quote request form on your own website. Visitors ask travel questions and get answers from your agency's own data on Recent Visits (your profile, tours, documents, saved answers and reviews), see your tours, and can send you a quote request.

What the widget does#

  • Chat: answers questions about your agency and tours, from your data only. It does not use Recent Visits' general editorial content and never mentions other agencies. If it does not know, it says to ask the agency and offers the quote form.
  • Tours: your published tours with indicative "from" prices.
  • Quote request: a short form (name, email, a few words, optional phone, travellers and date) with a consent checkbox.
  • Talk to the agency: if you allow it and you are within office hours, a visitor can ask for a person and a team member takes over the chat from the portal.
  • Look and wording (colours, launcher, assistant name, header, welcome message) set in the Widget Studio in your portal and delivered automatically.

How it works#

  1. You register your website's domain in the portal (Production for your live site, Test for staging or localhost).
  2. You paste a one-line script tag with your public key into your site.
  3. When the page loads the widget fetches its look from Recent Visits (no session yet). When a visitor opens the chat it exchanges the public key for a short-lived session token. The key identifies your integration; it is not a password.
  4. Chats, quote requests and activity are saved in Recent Visits and appear in your portal.

Your page configuration (anything you pass in code or data-config) overrides the look saved in the Widget Studio, field by field.

Environments#

ProductionTest
DomainYour live domain (every subdomain is covered)A staging domain, or localhost
Settings shownPublished settingsYour saved draft
Chats and quotesReach your inbox and LeadsNot delivered (chats deleted after 7 days; quote requests validated then dropped)
Talk to the agencyIf enabledNever

Owners edit the settings; managers can only see the registered websites. See Widget Studio field reference.

Guide contents#

  1. Installation: script tag, Subresource Integrity, local development, the npm status.
  2. Configuration reference: every option, with types, defaults and limits.
  3. Themes and branding: colours, dark mode, launcher, what you can and cannot style.
  4. Agency integration: domain, keys, environments, drafts, going live and testing.
  5. API reference: init, the widget handle, the headless client, errors and types.
  6. Security and privacy: keys, sessions, domain checks, CSP, data, limits.
  7. Examples: minimal, themed, Next.js, React, headless quote.
  8. Troubleshooting
  9. Versioning
  10. Widget Studio field reference: every tab, field and button of the Website widget page in the portal.

Last checked against the product:

  • SDK installation · Install the Recent Visits widget with a script tag, add Subresource Integrity, run it locally, and understand the current npm status.
  • Agency integration guide · How the widget knows which agency it belongs to, how environments and drafts work, how quote requests reach your portal, and a go-live checklist.
  • Widget Studio field reference · Every screen, tab, field and button of the Website widget page in the agency portal: websites and keys, settings, draft and publish, live preview, and what owners and managers can see.
  • SDK security and privacy · What is public and what is secret, how sessions and the domain check protect your agency, Content-Security-Policy settings, what data the widget sends and keeps, and visitor disclosure.

Still stuck? Contact us and tell us what you tried.