Embed a Shared Prototype in Another SiteBeta
Let your users try a shared prototype without leaving your website, intranet, or SharePoint page.
About This Task
An embedded prototype is the shared prototype you already created, shown in a frame on another site. It uses the same settings as the shared link: branding, language, file uploads, metadata filters, and default runtime parameters. As with the shared link, each visitor is an external user of their own.
You control which sites can embed the prototype with a list of allowed sites. A site that isn't on the list can't show the prototype.
You can show the prototype in one of two ways:
- Chat button: A round button in the corner of your page, in your brand color. It opens the prototype in a panel.
- Inline: The prototype is part of the page content, in a frame.
Prerequisites
- A shared prototype link for a pipeline or a service. To create one, see Share a Pipeline Prototype.
- Permission to edit the page where you want to embed the prototype.
Embed a Shared Prototype
- Open the share window of the pipeline or service. The Embed tab appears after you generate a link.
- On the Embed tab, under Allowed sites, add each site that shows the prototype, and save. Use one of these formats:
https://example.comfor one site. Add a port if the site uses one, for examplehttps://example.com:8443.https://*.example.comfor all subdomains of a domain.http://localhostto test on your own computer.
- Choose Chat button or Inline, and copy the code.
- Paste the code into your page. For SharePoint, follow the hint on the Embed tab.
- Open your page and check that the prototype loads. The Embed tab also has a preview. If it doesn't load, see Troubleshooting.
To stop a site from embedding the prototype, remove it from Allowed sites and save. To stop all access, delete the link.
Embed a Prototype That Requires Login
If you set the shared link to require login (see Share a Pipeline Prototype), the embedded prototype shows a Sign in button. Visitors click it, sign in to Haystack Enterprise Platform in a popup window, and return to the embedded prototype. Visitors must be members of your Haystack Platform organization. The sign-in is saved in the visitor's browser for 8 hours, or until the link expires if that's sooner. After that, they sign in again.
Set Allowed Sites with the REST API
You can set the allowed sites with the allowed_origins field, a list of sites. Use https://host (with a port if needed), https://*.domain for all subdomains, or http://localhost for testing. Use it when you create or edit a shared prototype. An empty list means no site can embed the prototype.
Troubleshooting
- The frame stays empty or is blocked: The site isn't in Allowed sites. Add it exactly as it appears in the browser address bar, including
https://and the port if any, and save. - The page shows a not-found error: The link is invalid, expired, or deleted. Generate a new link and copy the embed code again.
- The sign-in popup doesn't open: The browser blocks popups for your site. Allow popups for it and click Sign in again.
Related Information
Was this page helpful?