Insert Content
Insert Content
Section titled “Insert Content”What it does: Adds rich content (HTML, images, videos, etc.) to webpages at specific locations, allowing you to enhance pages with dynamic updates and interactive elements.
What Goes In
Section titled “What Goes In”| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| Content | String/Object | The content to insert (HTML, text, image URL) | Yes | "" |
| Content Type | String | Type: html, text, image, video | No | html |
| Target Element | String | CSS selector for where to insert | No | body |
| Insert Position | String | Where to place: before, after, inside | No | inside |
What Comes Out
Section titled “What Comes Out”| Name | Type | Description |
|---|---|---|
| success | Boolean | Whether the content was inserted successfully |
| insertedContent | String | The content that was added |
| targetElement | String | Where the content was inserted |
| contentType | String | Type of content that was inserted |
Real-World Examples
Section titled “Real-World Examples”Content Enhancement Add interactive elements, videos, or rich media to existing webpages to make them more engaging.
Dynamic Annotations Insert helpful explanations, tooltips, or additional information alongside existing content.
Live Updates Add real-time information like stock prices, weather updates, or news feeds to any webpage.
How to Use It
Section titled “How to Use It”- Prepare your content - HTML code, image URLs, or rich media
- Choose the location - specify where on the page to insert
- Set the content type - tell the node what kind of content you’re adding
- Run the workflow - the content gets added to the page
Simple Example:
{ "content": "<div class='alert'>🔔 New update available!</div>", "contentType": "html", "targetElement": ".main-content", "insertPosition": "before"}🔍 Technical Details
Content Types:
- HTML: Rich formatted content with styling and interactivity
- Text: Plain text content (automatically escaped for security)
- Image: Image URLs that get converted to
<img>tags - Video: Video URLs that get converted to
<video>tags
Position Options:
- Before: Adds content before the target element
- After: Adds content after the target element
- Inside: Adds content inside the target element (at the end)
Security: All content is automatically sanitized to prevent malicious code injection.
Limitations:
- Changes are temporary and disappear when you refresh the page
- Some websites may prevent content modification
- Cannot insert into protected or secure elements
Try It Yourself
Section titled “Try It Yourself”Add Alert Banner:
{ "content": "<div style='background: #ffeb3b; padding: 10px; text-align: center;'>⚠️ Important Notice</div>", "contentType": "html", "targetElement": "body", "insertPosition": "after"}Insert Image:
{ "content": "https://example.com/image.jpg", "contentType": "image", "targetElement": ".article-content", "insertPosition": "inside"}Add Video:
{ "content": "https://example.com/video.mp4", "contentType": "video", "targetElement": "#media-section", "insertPosition": "inside"}Common Issues:
- Content not appearing? Check that the target element exists on the page
- Content in wrong location? Verify the CSS selector and try different position options
- Security errors? Some content may be blocked for security - try simpler HTML
What’s Next?
Section titled “What’s Next?”- Insert Text - Add simple text content instead of rich media
- Content Replacer - Replace existing content instead of adding new
- Get All HTML - Extract existing page structure before inserting