---
title: "Put a tutorial on your website with its embed code"
checked: "2026-11-19, window 1000 × 500 points"
source: "https://cactorial.page/t/egSEJsVmdpFs (version 3)"
language: "en"
---

# Put a tutorial on your website with its embed code

Goal: Put a published tutorial's video on a page of your own website: copy its embed code in Studio, paste it into an embed block in your site's editor and publish the page. The video plays right on your page and always shows the version you published last.

This is the tutorial written for AI agents. Each step gives what to do, the control to act on (its name, role and place in the screenshot), what to expect afterwards, a screenshot of the screen before it, that screenshot with the control marked in magenta, a close-up of the control and a JSON file naming every control on that screen with its role and place. Overview sheets show every step at a glance.

Before you start: check the following.
- A tutorial published on cactorial.page that anyone with the link can view
- A website whose editor accepts embed code (an embed, iframe or HTML block)

The pictures show example content; yours will differ. Find controls by their labels and roles, and use the pictures and coordinates as a guide, not as exact positions. Coordinates are pixels of each picture, from its top-left corner.

A screen whose step acts on a control also comes marked (the control boxed in magenta, or ringed where a point was acted on) and as a close-up of the control, cut from the screen (its JSON gives the part it shows).

Overview of the steps, numbered, with each step's control marked: images/overview-1.avif (steps 1 to 7).

## Copy Embed Code

### Step 1. Open the tutorial's Publish page

- Do: In Studio, open the published tutorial and click **Publish** at the top.
- Action: click
- Target: AXRadioButton "Publish" (frame in the picture: x 1442, y 20, 130 × 64)
- Expect: The Publish page shows the **Publish on Cactorial** card with the tutorial's link.
- Screen before: images/step-01.avif (marked: images/step-01-marked.avif; close-up: images/step-01-closeup.avif; controls: images/step-01.json)
- In the video: 0:08 to 0:10
- Actions:
  1. Click Publish at the top — target: AXRadioButton "Publish" (frame in the picture: x 1001, y 14, 90 × 44) — screen: images/step-01-b1.avif (marked: images/step-01-b1-marked.avif; close-up: images/step-01-b1-closeup.avif; controls: images/step-01-b1.json)

### Step 2. Copy the embed code

- Do: On the **Publish on Cactorial** card, click **Copy Embed Code**. It is there while anyone with the link can view the tutorial.
- Action: click
- Target: AXLink "Copy Embed Code" (frame in the picture: x 106, y 598, 290 × 40)
- Expect: It says Copied: the code for your page is on the clipboard.
- Screen before: images/step-02.avif (marked: images/step-02-marked.avif; close-up: images/step-02-closeup.avif; controls: images/step-02.json)
- In the video: 0:14 to 0:16
- Actions:
  1. Scroll to the Publish on Cactorial card — screen: images/step-02-b1.avif (controls: images/step-02-b1.json)
  2. Click Copy Embed Code — target: AXLink "Copy Embed Code" (frame in the picture: x 74, y 415, 201 × 28) — screen: images/step-02-b2.avif (marked: images/step-02-b2-marked.avif; close-up: images/step-02-b2-closeup.avif; controls: images/step-02-b2.json)

## Paste it into a page

### Step 3. Open your page in your website's editor

- Do: Open the page in your website's editor and click where the video should go.
- Action: click
- Target: p "Notice the ground and the next ordinary breath at the same time. Feel what it is like to be supported while air moves th" (frame in the picture: x 288, y 367, 654 × 39)
- Expect: The cursor is where the video will be.
- Screen before: images/step-03.avif (marked: images/step-03-marked.avif; close-up: images/step-03-closeup.avif; controls: images/step-03.json)
- In the video: 0:20 to 0:22
- Actions:
  1. Click the last paragraph — target: p "Notice the ground and the next ordinary breath at the same time. Feel what it is like to be supported while air moves th" (frame in the picture: x 428, y 668, 972 × 58) — screen: images/step-03-b1.avif (marked: images/step-03-b1-marked.avif; close-up: images/step-03-b1-closeup.avif; controls: images/step-03-b1.json)

### Step 4. Add an embed block

- Do: Add a block for embedded content. Editors call it **Embed**, **Iframe** or **Custom HTML**; in many you type **/** and choose it from the list.
- Action: type
- Expect: An empty block for the code.
- In the video: 0:23 to 0:28

### Step 5. Paste the code

- Do: Paste the code into the block. If the block has a preview, open it.
- Action: click
- Target: button "Preview" (frame in the picture: x 363, y 436, 66 × 20)
- Expect: The preview shows the tutorial's video.
- Screen before: images/step-05.avif (marked: images/step-05-marked.avif; close-up: images/step-05-closeup.avif; controls: images/step-05.json)
- In the video: 0:29 to 0:33
- Actions:
  1. Choose Iframe — keys: enter — target: div (frame in the picture: x 361, y 148, 1128 × 641) — screen: images/step-05-b1.avif (marked: images/step-05-b1-marked.avif; close-up: images/step-05-b1-closeup.avif; controls: images/step-05-b1.json)
  2. Paste the embed code — text: "<iframe src=\"https://cactorial.page/t/a76yCrMjsM1v/embed\" title=\"Start a focus session in Orbit\" style=\"width:100%;aspect-ratio:1920/1080;border:0\" allow=\"fullscreen; picture-in-picture\" allowfullscreen loading=\"lazy\"></iframe>" — keys: cmd+v — target: div "Embed code" (frame in the picture: x 463, y 812, 953 × 222) — screen: images/step-05-b2.avif (marked: images/step-05-b2-marked.avif; close-up: images/step-05-b2-closeup.avif; controls: images/step-05-b2.json)
  3. Click Preview — target: button "Preview" (frame in the picture: x 539, y 769, 99 × 29) — screen: images/step-05-b3.avif (marked: images/step-05-b3-marked.avif; close-up: images/step-05-b3-closeup.avif; controls: images/step-05-b3.json)

### Step 6. Publish the page

- Do: Publish or save the page as you usually do in your website's editor.
- Action: click
- Target: button "Publish changes"
- Expect: Your website shows the changed page.
- Screen before: images/step-06.avif (controls: images/step-06.json)
- In the video: 0:33 to 0:35
- Actions:
  1. Click Publish changes — target: button "Publish changes" (frame in the picture: x 1757, y 216, 177 × 36) — screen: images/step-06-b1.avif (marked: images/step-06-b1-marked.avif; close-up: images/step-06-b1-closeup.avif; controls: images/step-06-b1.json)

## The video on the website

### Step 7. Watch it on your website

- Do: Open the page on your website and click the video.
- Action: click
- Target: iframe "Start a focus session in Orbit" (frame in the picture: x 146, y 1028, 46 × 50)
- Expect: The video plays right on your page, with a link to open the whole tutorial.
- Screen before: images/step-07.avif (marked: images/step-07-marked.avif; close-up: images/step-07-closeup.avif; controls: images/step-07.json)
- In the video: 0:43 to 0:51
- Actions:
  1. Scroll to the video — screen: images/step-07-b1.avif (controls: images/step-07-b1.json)
  2. Play the video — target: iframe "Start a focus session in Orbit" (frame in the picture: x 490, y 836, 32 × 35) — screen: images/step-07-b2.avif (marked: images/step-07-b2-marked.avif; close-up: images/step-07-b2-closeup.avif; controls: images/step-07-b2.json)

## Done automatically: don't do these by hand

- The embedded video always plays the version published last: after Update in Studio, your page shows the new version
- The video keeps its shape at any width of the page

## Not covered

- Publishing a tutorial, Update and Who Can View…
- Tutorials open only to people you choose: they have no embed code
- Uploading the video file to YouTube or a help desk

## Notes

- **Copy Embed Code** is on the **Publish on Cactorial** card of the tutorial's Publish page in Studio (Publish at the top of the tutorial). It shows only while the tutorial is open to anyone with the link. It puts the code on the clipboard and says Copied.
- The code is one `<iframe src="https://cactorial.page/t/<id>/embed" …>` element. With an agent, `publish_online` returns the same code as `embed.code`.
- Website editors differ. Use a block that embeds a page from another site (Embed, Iframe, Custom HTML). An HTML block that renders inside a sandboxed frame without its own origin shows an empty frame: use the editor's iframe or embed block instead.
- Publish or save the page in the website's editor as the person usually does; changing their live website is their decision.

Checked on 19 November 2026.
