The Embed agent block allows you to display websites, iframe content, or multimedia from various
sources to your users.
Not all websites allow embedding due to security policies (X-Frame-Options). If you see a blank
space, it means the website you’re trying to embed doesn’t allow iframe embedding.
To use this block, paste any embeddable URL, an HTML <iframe> snippet, or a variable with an URL inside (http:// or https://).
Settings
-
Height: Configure the height of the embedded content in pixels. This can also be set using
variables for dynamic sizing.
-
Wait for event?: Enable this feature when you own the embedded website and want to control the
bot flow based on events from the embedded content.
- Event Name: Specify the name of the event to listen for.
- Save Data: Choose a variable to store any data sent with the event.
Event Implementation Example:
The event name must match what you’ve configured in the Embed block settings.
Embed a PDF hosted on Google Drive
- Select the PDF file you want to embed
- Right-click → Preview → More actions → Open in a new window
- Click More actions → Embed item
- Copy the embed code and paste it in the Embed agent block URL field