To embed Activepieces into iframe, follow these steps:
Step 1: Embed SDK
Add the embed SDK script. This script helps synchronize the iframe and host routes, which initialize activepieces object and call configure method.
The script shouldn’t contain async or defer attributes as it must load before the iframe.
Configure Parameters:
Step 2: Generate a JWT token
Follow the instructions in the generate jwt page
Step 3: Add an iframe
Add an iframe into your html, set its source to <your_instance_url>/embed. If you are using the cloud, just use https://cloud.activepieces.com/embed.
Insert the script before the embedding iframe.
Query Parameters: