Put an agent on your website
Add a tour guide or help desk to your website as a floating button or inside a page, choose the sites it may appear on, and hand the install code to your developer.
A tour guide or help desk can run on your own website, so visitors meet it without a link. You set it up on the agent's Sharing tab and get one line of code that your developer pastes into the site. The code is tied to that one agent and never expires: edits you save to the agent reach every site that carries it, with no change to the code.
Presenters are shared by link only. To put a copilot, onboarding or training agent inside your own product, see Put an agent inside your product.
Before you start
- You need the Admin role.
- The agent is a tour guide or help desk, it is Live, and you have tried it. See Preview and test.
- You know the address of each site it should appear on, starting with
https://. - Someone who can edit your website is ready to paste the code.
Choose how it appears
The same install code works both ways. Switching from one to the other never breaks a site that already has the first.
| Floating button | Inside the page | |
|---|---|---|
| What visitors see | "A button in the corner opens it over the page." | "It sits in a section of the page, like a video." |
| When it opens | When the visitor clicks the button. | When the visitor clicks Join the demo in the frame. Nothing starts on page load. |
| What you set | Button text (starts as "Try a live demo"). Under More options: Corner (Bottom right or Bottom left), Icon (Play, Chat or Sparkles), Button colour (blank uses your brand colour) and Teaser, an optional short line beside the button. | Height (640, 720 or 860 px) and Max width (Full width, 960 px or 1200 px). Width follows the page; on phones the height is capped at 85% of the screen. |
| Where the code goes | Before </body> on each page that should show the button. | Where the agent should sit on the page. |
If the agent's visitor form is on, the form is the first thing visitors see in either style. See The visitor form.
Set it up
Open On your site
In the left rail under Agents, open Meeting agents, then the agent, then its Sharing tab. Scroll to On your site. The badge beside the title counts the steps you have done, such as "1 of 3 steps done", and says Ready to install once all three are.
Under How it appears, pick Floating button or Inside the page.
Turn it on for websites
Switch on Allowed on websites, then set the button's look or the frame's size.
Leave Testers only off unless you want to try it on your live site before visitors see it. See Check it works.
Choose the sites it can appear on
Type each site's address on its own row, then press Add site for another. Browsers show the agent only on these sites.
- Write the address only, with no page path:
https://www.example.com, nothttps://www.example.com/pricing. https://www.example.comandhttps://example.comare different sites. List both if your site answers on both.https://*.example.comcovers every subdomain, such aswwwandapp, but notexample.comitself.http://only works forhttp://localhost, for trying it on your own computer.
Every agent in the workspace shares this list, so a change here applies to all of them.
Save
Press Save changes. The switch and the sites take effect once saved. If you see "Embedding is off for the workspace." under the sites, press Switch embedding on.
Copy the code
Press Create install code the first time. Then press Copy code. For Inside the page the step is called Copy the embed code, and the code is a frame tag sized the way you chose.
The code shows nothing until the steps above are done and saved.
Send it to whoever runs the site
The last step, Then send it to whoever runs the site, holds plain-text instructions for your developer: what to paste, where, and the settings on your site that can block it. Press Copy and send them by email or in a ticket.
What your developer needs to know
The copied instructions cover this, written for someone who has never heard of Insurge:
- Where to paste the code. For the floating button this includes notes for common platforms such as WordPress, Webflow, Framer, Next.js and Google Tag Manager.
- The page must be served over HTTPS. On a plain
http://page the agent doesn't appear at all, except onhttp://localhostwhile testing. - If the site sends a Content-Security-Policy header, it has to allow Insurge's addresses, which the instructions list.
- If the site restricts the microphone with a Permissions-Policy header, it has to allow it for Insurge. Without that, visitors can only type.
The full technical reference, including the JavaScript calls your site can make, is in the developer guide to website embeds.
Check it works
- Floating button: once you have created the install code, a fourth step, Check it is on your site, lists each site where the code has loaded and when. Until it has loaded somewhere, it says "Not seen yet. Open a page that has the tag." Open a page with the code, then press Check again. If a site shows "Not in your sites, so it stays hidden there.", add that exact address to your sites and save. Then click the button on the page and try a short meeting.
- Inside the page: open the page and look for the Join card where the frame was pasted. The check above can't see frames, so it isn't shown for this style.
To try it on your live site before anyone else sees it, switch on Testers only and save. The agent then shows only in a browser that has opened a page of the site once with ?insurge_preview=1 at the end of its address. That browser remembers it; open a page with ?insurge_preview=0 to forget it. Switch Testers only off when you're ready for everyone. Testers only works for the floating button only: a frame pasted inside the page shows to everyone.
What visitors get
The meeting is the same one a share link opens: see What visitors experience. Two things differ on your site:
- The meeting never moves the visitor away from your page. If the agent is set to Redirect automatically when the meeting ends, the closing screen shows the button instead.
- Each meeting records the site it ran on. Its page says Where "On" and the site, and Analytics can group meetings by Website.
Change it or take it off
- To change what the agent says or does, edit the agent and save. Every site picks it up with no new code.
- To hide it on every site, switch off Allowed on websites and save, or switch the agent to Paused at the top of its page (which also stops its links).
- To hide it on one site, remove that site from the list and save. This hides every agent on that site.
- To remove it for good, ask your developer to take the code off the site.
- If the install code ever needs replacing, for example because it was copied somewhere it shouldn't be, ask your Insurge contact.
Troubleshooting
Share links
Create a link that opens a meeting with one of your agents, name it, give it an end date or revoke it, and see which link brought each meeting.
Put an agent inside your product
Install a copilot, onboarding or training agent in your own app, know what your users see and are asked, try it on staging first, and brief your developer.