Web Scheduler (legacy)

Web Scheduler (Legacy Embed)

This page covers the legacy Web Scheduler embed script. The current way to add OnePath to your site is Web Widgets — one loader script for the booking scheduler and chat.

Setting up OnePath for the first time?

Follow the Web Widgets guide — it is the current integration and takes one script tag. This page is only for sites still running the legacy embed script.

Am I on the legacy embed?

Search your site's HTML for onepath. You are on the legacy embed if you find script tags ending in onepath-embed.js or onepath-web-chat-embed.js:

<script src="https://cdn.onepath.ai/web-scheduler/onepath-embed.js" data-token="..."></script>
<script src="https://cdn.onepath.ai/web-scheduler/onepath-web-chat-embed.js" data-token="..."></script>

If your site loads https://cdn.onepath.ai/loader.js instead, you are already on Web Widgets — nothing to do.

The legacy scripts still work, but new capabilities (opening the scheduler from your own forms, booking events for analytics, context attributes) ship only to Web Widgets.

Migrate in one edit

Remove every legacy OnePath script tag and replace them with the single loader in your document head:

<!-- Remove these -->
<script src="https://cdn.onepath.ai/web-scheduler/onepath-embed.js" data-token="..." data-brand-color="#..."></script>
<script src="https://cdn.onepath.ai/web-scheduler/onepath-web-chat-embed.js" data-token="..."></script>

<!-- Add this instead, inside <head> -->
<script src="https://cdn.onepath.ai/loader.js"></script>

What changes:

  • No data-token. The loader recognizes your account from the domain the page is served on. The domain must be on the Allowed websites list under Account settings → Lead Capture → Channels → Web Widgets card. A root domain entry covers its subdomains. Where to add it
  • No data-brand-color / data-text-color. Colors come from Channels → Web Scheduler and the logo from Business Info, so they stay consistent everywhere without touching your site.
  • One script instead of two. The loader serves both the scheduler and chat — whichever is enabled on your account.

What stays the same:

  • Your trigger buttons keep working unchanged. data-onepath-web-scheduler-trigger and data-onepath-web-chat-trigger are the same attributes in Web Widgets — no markup changes needed.

Using an inline (self-hosted) embed?

The legacy data-self-hosted / data-target-container script attributes have no Web Widgets equivalent, and inline embedding is not available in Web Widgets today. Contact OnePath before removing the legacy script so the switch is seamless.

What you gain

Previous
Troubleshooting