BotCreds Agent Artifacts
BotCreds Agent Artifacts gives AI agents a permanent home for their outputs. Post a single HTML file to the REST API. The plugin parses it, extracts scripts and styles, saves them as static files, enqueues them properly via WordPress APIs, and serves the result at a clean public URL with strict security headers. No build tools. No infrastructure. One API call. How It Works POST raw HTML to /wp-json/wp/v2/artifacts The plugin extracts and blocks and saves them as static files in wp-content/uploads/artifacts/{id}/ JS and CSS are enqueued via wp_enqueue_script() / wp_enqueue_style() — no inline scripts in rendered output The HTML body is sanitized with wp_kses() and an expanded allowed-tags list (canvas, SVG, inputs, video, audio, data-* attributes) The artifact is served at yourdomain.com/artifacts/{slug}/ with a strict Content Security Policy From the caller’s perspective: POST HTML, get URL. Everything else happens server-side. Features Deployment Single REST API call — no SDK, no library, any HTTP client works Update artifacts in place — POST to /wp-json/wp/v2/artifacts/{id} and the public URL stays the same Optional artifact_description field for internal documentation Head content preservation — tags and other elements from submitted HTML are preserved in output External script support — tags are registered as external dependencies and enqueued alongside local assets Asset cache busting — enqueued files are versioned with filemtime() so browsers fetch updates automatically Clean redeploys — old asset files are deleted before new ones are written Security Content Security Policy on every artifact page — blocks external script injection and cross-origin data exfiltration by default Trusted CDN list out of the box: cdn.jsdelivr.net, unpkg.com, cdnjs.cloudflare.com, esm.sh, cdn.skypack.dev — scripts and styles load from these without any configuration Per-artifact API allowlist — artifacts that call external APIs declare their origins via an HTML pragma comment ( ) or a deploy-time meta field; the plugin adds them to connect-src automatically Additional security headers: X-Content-Type-Options, X-Frame-Options, Referrer-Policy Custom capability type — artifact capabilities are separate from standard post capabilities; only Administrators can create artifacts by default Developer Hooks botcreds_agent_artifacts_csp — filter the full CSP header value for any artifact botcreds_agent_artifacts_allowed_html — filter the wp_kses allowed-tags array botcreds_agent_artifacts_grant_to_role() — helper to grant capabilities to additional roles Custom template — drop single-artifact.php in your active theme to replace the render template Use Cases OpenClaw (AI personal assistant) OpenClaw agents can deploy interactive dashboards, daily digests, data visualizations, and mini-apps in a single tool call. Generate the HTML, POST it, get the URL — no manual steps, no context switching. For artifacts that fetch live data, add a pragma comment to the HTML and the CSP is updated automatically: For recurring reports (daily digests, weekly summaries), store the artifact ID after the first deploy and update in place on subsequent runs. The URL never changes. Claude Code (terminal-based coding agent) Claude Code sessions can invoke a shell deploy script directly after generating output. Add a scripts/deploy-artifact.sh to your project and reference it in your CLAUDE.md — Claude will use it to ship outputs without leaving the terminal. No manual copy-paste, no browser switching. Codex (OpenAI coding agent) Same pattern as Claude Code. Add deployment instructions to your AGENTS.md and Codex can write HTML, call the deploy script, and report the live URL — all in one agent run. GitHub Actions (versioned project) For projects that build a static HTML output — dashboards, reports, documentation, changelogs — a GitHub Actions workflow can deploy to an artifact on every push to main. The artifact ID is stored as a repository variable so the public URL stays stable across all future deploys. Push → build → deploy → done. Example: Deploy via REST API curl -X POST "https://your-site.com/wp-json/wp/v2/artifacts" \ -u "username:application-password" \ -H "Content-Type: application/json" \ -d '{ "title": "My App", "status": "publish", "meta": { "artifact_html": " Hello. ", "artifact_description": "Built by my AI agent" } }' The response link field is the public URL of the deployed artifact. Example: Artifact with Live Data Include the fetch pragma in your HTML — no configuration needed: fetch('https://api.openweathermap.org/data/2.5/weather?q=Denver&appid=YOUR_KEY') .then(r => r.json()) .then(d => document.getElementById('weather').textContent = d.weather[0].description); Example: GitHub Actions Deployment name: Deploy Artifact on: push: branches: [main] jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: npm ci && npm run build - name: Deploy to Artifact env: WP_SITE: ${{ secrets.ARTIFACT_WP_SITE }} WP_USER: ${{ secrets.ARTIFACT_WP_USER }} WP_PASS: ${{ secrets.ARTIFACT_WP_PASS }} ARTIFACT_ID: ${{ vars.ARTIFACT_ID }} run: | PAYLOAD=$(jq -n --arg title "My Dashboard" --rawfile html dist/index.html \ '{title: $title, status: "publish", meta: {artifact_html: $html}}') ENDPOINT="$WP_SITE/wp-json/wp/v2/artifacts" [ -n "$ARTIFACT_ID" ] && ENDPOINT="$ENDPOINT/$ARTIFACT_ID" curl -sf -X POST "$ENDPOINT" -u "$WP_USER:$WP_PASS" \ -H "Content-Type: application/json" -d "$PAYLOAD" | jq -r '.link'
Top keywords
- artifact22×2.65%
- html17×2.05%
- wp17×2.05%
- artifacts14×1.69%
- deploy10×1.21%
- agent8×0.97%
- id8×0.97%
- post8×0.97%
- url8×0.97%
- api6×0.72%
- artifact id6×0.72%
- call5×0.60%
Rank Math SEO – AI SEO Tools to Dominate SEO Rankings
Rank Math SEO – WordPress AI SEO Plugin to Rank Higher 📈 ★★★★★ Rank Math SEO helps you stay ahead of competitors with AI-powered SEO tools built for modern search engines, AI assistants, and evolving search experiences. The plugin brings powerful AI SEO tools right into WordPress. It helps you optimize content, include Schema Markup, add smart internal links, target the right keywords, run SEO checks, and more. Over 4 million WordPress websites trust Rank Math to grow their organic traffic faster. If you know you could be doing more for your website’s SEO but don’t have the time, Rank Math SEO is exactly what you need. Try the FREE Demo of Rank Math Features | Why Choose Rank Math? | Compare | Screenshots | Benefits [NEW] AI Visibility: Monitor Your Brand Across AI Search ➜ AI Visibility score to monitor your brand’s visibility ➜ Track how ChatGPT and other AI platforms mention your brand ➜ Monitor your brand’s sentiment across AI responses ➜ See how you compare against your competitors in AI Search ➜ Access complete transcripts of AI responses ➜ Check your brand’s AI Visibility across different countries Learn more about AI Visibility ➜ [NEW] AI Link Genius: Smart Internal Linking on Autopilot ➜ View every internal and external link on your site from one dashboard ➜ Update hundreds of links at once instead of editing pages one by one ➜ Get smart link suggestions as you write, right inside the editor ➜ Monitor broken links, redirects and overall link health ➜ Automatically link keyword variations to the right pages ➜ Get related post suggestions that keep readers on your site longer ➜ Find pages nobody links to and reconnect them to the rest of your site ➜ Export your link data for reports or audits Learn more about AI Link Genius ➜ Exclusive Content AI. Write Highly Optimized SEO Content Get Started with Content AI for FREE and enjoy: ➜ 40+ AI Tools Built for SEO ➜ Use AI SEO to write high-quality content ➜ Fix SEO Issues in One Click ➜ Generate AI Image Alt Text Instantly ➜ Get Instant SEO Help with RankBot ➜ Full Control via Role Manager Learn more about Content AI ➜ Rank Math Includes Every SEO Tool You Need to Rank Higher See the features only Rank Math offers, and find out why it’s the right SEO plugin for you. ✔ Intuitive Setup Wizard that configures Rank Math automatically for your site ✔ 16+ Schema types to add rich results in few clicks ✔ Optimize post for unlimited focus keywords (5 by default, unlimited with this filter) ✔ Content AI to help you write SEO-friendly content ✔ Google Search Console integration ✔ Google Analytics Integration ✔ LSI keyword suggestions to attract more traffic ✔ XML Sitemap with custom post type support ✔ Detailed content analysis with actionable SEO recommendations ✔ 30+ SEO tests with 1-click ✔ Module based system, enable only what you need ✔ SEO optimized breadcrumbs with theme support ✔ Smart Redirection manager to create redirects at scale ✔ Built-in 404 monitor to catch and fix broken links ✔ Internal link suggestions ✔ Role Manager to control what each team member can access ✔ Automatic ALT Text and Title tags for every image ✔ WordPress Multisite support Why is Rank Math such a game-changer? ✔ Fastest SEO plugin with barely any impact on site speed ✔ WooCommerce SEO with automatic Schema and meta tags ✔ Elementor SEO with native integration ✔ Divi SEO with native integration ✔ Local SEO tools to help nearby customers find your business ✔ Google AMP SEO with SEO data added automatically to AMP pages ✔ bbPress & BuddyPress SEO support with Q&A Schema ✔ 1-Click Import from Yoast ✔ 1-Click Import from AIO SEO ✔ 1-Click Import from SEOPress ✔ 1-Click Import from All In One Schema ✔ 1-Click Import from Redirection plugin ✔ Translation plugins support including WPML, Weglot, TranslatePress and Polylang ✔ Theme support including Astra, Kadence, Flothemes, OceanWP, Themify, Schema Theme and more ✔ Page builder support including Oxygen, WPBakery, Avada, Beaver Builder, and Page Builder Framework and more Who Can Benefit From Rank Math? Rank Math Plugin is perfect for: ✔ Bloggers ✔ eCommerce Store Owners ✔ Niche Sites ✔ Businesses ✔ Agencies ✔ Local Businesses ✔ Startups ✔ The Real Estate ✔ Artists & Photographers ✔ The Solution Offerer ✔ Directories ✔ Vloggers (Video Bloggers) ✔ Or any WordPress Website Take a sneak peek into Rank Math’s features Detailed Setup Tutorial BIG Publications are Raving About Rank Math Rank Math Reviews Rank Math Review – Why I Ditched Yoast For Rank Math Rank Math on Product Hunt Rank Math Plugin Review from an SEO Consultant and many more Check Rank Math PRO Which Makes SEO Easier & Faster Rank Math FREE VS PRO COMPARISON Unique Features of Rank Math PRO AI Link Genius ✔ AI-Powered Internal Link Suggestions ✔ Auto-Link Keyword Variations ✔ Automatic Link Audits & Monitor Link Health ✔ Bulk Link Update Tool Google Analytics & Search Console Integration ✔ Integrated Google Analytics, AdSense & Search Console Data ✔ Analyze the SEO Performance of Each Post & Page ✔ See Top Winning/Losing Posts & Keywords ✔ Keep Track of Position History ✔ Rank Tracker for Important Keywords Schema aka Structured Data aka Rich Snippets ✔ 20+ Pre-defined Schema types ✔ Import Schema from Other Websites ✔ Advanced Schema Builder to create any complex Schema Markup ✔ Schema Templates for Automation ✔ Conditional Schema Markup ✔ Multiple Location Schema On Any Page (using the Shortcode) SEO Automation ✔ Automated Image SEO ✔ Advanced Filtering for Images [https://i.rankmath.com/zAUHHP] ✔ Watermark Your images ✔ Advanced Post filtering ✔ Bulk Actions [index, noindex, redirect, etc.] ✔ Quick Edit SEO Details ✔ Bulk Import SEO Meta Details Using CSV file ✔ Auto Detect Videos and Generate Schema Markup for Them ✔ Auto Fetch Thumbnail, Duration of YouTube & Vimeo Videos ✔ Automatically Flush Facebook Thumbnails ✔ Open External Links in New Tabs ✔ Nofollow External Links ✔ Noindex Paginated, Archive, Search Result Pages ✔ Instant Indexing for Bing & Yandex [Also Google using our Instant Indexing Plugin] WooCommerce SEO ✔ Automatic Schema for WooCommerce Products ✔ Advanced Open Graph Tags for WooCommerce Products ✔ Automatic NoIndex Hidden Products ✔ Remove WooCommerce Product and Category Base ✔ Add Custom Brands to Products ✔ Add Global Identifier Schema Like GTIN/MPN – Even to Variations MANY MORE FEATURES ✔ PREMIUM 24x7x365 Dedicated Support Managers ✔ MOST COMPETITIVE PRICING EVER! CHECK ALL THE PREMIUM FEATURES AND PRICING HERE Connect with the Team and SEO Experts JOIN FACEBOOK GROUP COMMUNITY: The purpose of this Facebook group is to have a collective place where the community can help each other, and we can get some feedback to improve Rank Math as well. Joining the group is also a great way to connect with like-minded people and share your SEO experience. Branding Guideline Rank Math® SEO is a registered trademark. Please use the following format when mentioning the Rank Math plugin anywhere. * Rank Math [correct] * RankMath [incorrect] * Rankmath [incorrect] * rankmath [incorrect] * rankMath [incorrect] External Services Rank Math SEO connects to several external services to provide its features. Below is a full disclosure of each service, what data is sent, and when. Rank Math Keyword Suggestions API (api.rankmath.com) Used to provide live keyword suggestions as you type in the Focus Keyword field in the post editor. Keyword suggestions: Each time you type in the Focus Keyword field, the keyword and your site’s locale are sent to api.rankmath.com to retrieve related keyword suggestions. This call is made directly from your browser. No account or login is required for this feature. Service provider: Rank Math (ONE.COM INDIA PRIVATE LIMITED) Privacy policy: https://rankmath.com/privacy-policy/ Terms of service: https://rankmath.com/terms-of-service/ Rank Math API (rankmath.com) Used for site registration, license verification, and the SEO Analysis feature. Site registration / account connection: Sends your site URL, Rank Math username, and API key when you connect your Rank Math account. This is required to activate API-based features. Site disconnection: Sends your site URL, username, and API key when you disconnect your account to remove the registration from Rank Math’s servers. SEO Analysis: Sends your site URL, target keyword, and language when you run an SEO site analysis. Results are returned as a scored report. Dashboard widget: Fetches the latest Rank Math blog posts to display in the WordPress admin dashboard widget. No personal data is sent. Results are cached for 12 hours. Service provider: Rank Math (ONE.COM INDIA PRIVATE LIMITED) Privacy policy: https://rankmath.com/privacy-policy/ Terms of service: https://rankmath.com/terms-of-service/ Rank Math OAuth Connector (oauth.rankmath.com) Used to connect your site to Google services (Search Console, Google Analytics) via OAuth. OAuth token exchange: When you authorize Google services, your browser is redirected through oauth.rankmath.com to exchange the authorization code for access and refresh tokens. The authorization code is sent to this service; it returns OAuth tokens for use on your site. Token refresh: Sends your Google refresh token to obtain a new access token when the current one expires. Service provider: Rank Math (ONE.COM INDIA PRIVATE LIMITED) Privacy policy: https://rankmath.com/privacy-policy/ Terms of service: https://rankmath.com/terms-of-service/ Rank Math Content AI (cai.rankmath.com) Used to power AI-based content features. Only active when the Content AI module is enabled and you have a connected Rank Math account. Keyword research: Sends the target keyword, language, and country to fetch keyword suggestions and metrics. Bulk SEO meta generation: Sends post title and content to generate SEO titles and descriptions in bulk. Bulk image alt text generation: Sends image data (base64-encoded) to generate descriptive alt text for images. Default prompts sync: Sends your site URL, username, API key, and plugin version daily to keep AI prompt templates up to date. Credits/wallet check: Sends your username, API key, and site URL to check remaining Content AI usage credits. Service provider: Rank Math (ONE.COM INDIA PRIVATE LIMITED) Privacy policy: https://rankmath.com/privacy-policy/ Terms of service: https://rankmath.com/terms-of-service/ Google APIs (googleapis.com, google.com) Used by the Analytics module to retrieve website performance data. Only active when you have connected Google Analytics via the Rank Math Analytics module. Google Analytics data: Sends your OAuth access token to fetch data like traffic, keyword, impressions, etc for your site from the Google Analytics API. Token verification: Sends your OAuth access token to verify its validity and authorized scopes. Google Tag Manager script (googletagmanager.com): When a Google Analytics / Google Tag property ID is configured, the Google Tag (gtag.js) script is loaded from googletagmanager.com on your site’s front end. AMP analytics (cdn.ampproject.org): When AMP is active and a Google Analytics property is configured, the AMP analytics component script is loaded from cdn.ampproject.org. Service provider: Google LLC Privacy policy: https://policies.google.com/privacy Terms of service: https://policies.google.com/terms IndexNow API (api.indexnow.org) Used by the Instant Indexing module to notify search engines of new or updated content. Only active when the Instant Indexing module is enabled. Sends a list of URLs, your site URL, and your IndexNow API key to api.indexnow.org each time content is published or updated (or manually triggered). Service provider: Microsoft (Bing) Privacy policy: https://privacy.microsoft.com/en-us/privacystatement Terms of service: https://www.indexnow.org/faq Facebook Graph API (graph.facebook.com) Used to refresh Facebook’s cached preview when a post is updated. Only active when a Facebook App ID and App Secret are configured in Rank Math’s Social settings. Sends the post’s public URL and your Facebook App credentials to trigger a re-scrape of the page by Facebook. Service provider: Meta Platforms, Inc. Privacy policy: https://www.facebook.com/privacy/policy/ Terms of service: https://developers.facebook.com/terms/