Blog Post Automation

Automate your blog

Generate SEO-ready posts on a schedule, attach feature images, and publish them to WordPress or any system via the Blog API.

01

Generate posts

Set up the blog bot once in the dashboard, then generate on demand or on a daily schedule.

1

Configure

  • Open Dashboard → Blog Bot → Settings
  • Set your niche, tone, language
  • Save
2

Generate

  • Type a title and generate
  • Or turn on Auto-generate daily
  • Posts are saved as drafts
3

Publish

  • Review and edit the draft
  • Publish now or schedule it
  • Pull it anywhere via the Blog API

02

Feature images (Pexels)

aEye fetches a relevant feature image for each post from Pexels using your post's keywords. Add your own Pexels API key so images are pulled under your account.

  1. Get a free API key at pexels.com/api.
  2. Open Dashboard → Blog Bot → Settings.
  3. Paste it into the Pexels API Key field and Save. It is stored encrypted.
Without a key: posts are still generated, just without a feature image. You can also fetch or replace an image manually from the post editor. To remove a saved key, clear the field and save.

03

Blog API

Pull AI-generated blog posts from your aEye account into any system. Use it to auto-publish to WordPress, generate an RSS feed, build a static site, or pipe through Zapier / Make / n8n.

GET/api/public/blog-feed/{feedApiKey}

Auth: the feedApiKey in the URL path. Find yours in Dashboard → Blog Bot.

Query params: page (default 1), limit (default 10, max 50). Posts are sorted by publishedAt descending.

Request

curl https://app.aeye.lk/api/public/blog-feed/YOUR_FEED_API_KEY?page=1&limit=10

Response

{
  "posts": [
    {
      "slug": "5-ways-ai-saves-time",
      "title": "5 Ways AI Saves Time for Small Businesses",
      "seoTitle": "How AI Saves Time for SMBs in 2026",
      "metaDescription": "Discover five practical ways...",
      "keywords": "ai, small business, automation",
      "tags": "ai,smb,productivity",
      "excerpt": "AI tools are no longer just for big enterprises...",
      "content": "<full html content>",
      "category": "AI Tools",
      "wordCount": 1240,
      "publishedAt": "2026-05-22T08:00:00Z"
    }
  ],
  "total": 24,
  "page": 1,
  "pages": 3
}

04

Auto-publish to WordPress

The simplest route is our official plugin: install it, paste your Feed API key, and pick a schedule. It fills in Yoast and Rank Math SEO meta, featured images, categories, and tags, and skips duplicates automatically.

aEye for WordPress plugin

Chat widget + automatic blog import, configured from one settings page. No code required.

Download plugin (.zip)

Prefer code? Drop this into your theme's functions.php to pull new posts hourly and publish them.

WordPress: hourly pull

<?php
// WP-Cron job: pull aEye blog posts and create WordPress posts
add_action('aeye_pull_blogs', function() {
  $api_key = 'YOUR_FEED_API_KEY';
  $url = 'https://app.aeye.lk/api/public/blog-feed/' . $api_key . '?limit=10';
  $res = wp_remote_get($url);
  if (is_wp_error($res)) return;
  $body = json_decode(wp_remote_retrieve_body($res), true);
  foreach ($body['posts'] as $p) {
    // Skip if slug already exists
    if (get_page_by_path($p['slug'], OBJECT, 'post')) continue;
    wp_insert_post([
      'post_title'   => $p['title'],
      'post_content' => $p['content'],
      'post_excerpt' => $p['excerpt'],
      'post_status'  => 'publish',
      'post_name'    => $p['slug'],
      'meta_input'   => [
        '_yoast_wpseo_metadesc' => $p['metaDescription'],
        '_yoast_wpseo_focuskw'  => $p['keywords'],
      ],
    ]);
  }
});

if (!wp_next_scheduled('aeye_pull_blogs')) {
  wp_schedule_event(time(), 'hourly', 'aeye_pull_blogs');
}

No-code options

  • Zapier: trigger on Webhooks by Zapier → Retrieve Poll, point at the blog feed URL, action: WordPress → Create Post.
  • Make.com: HTTP module (GET) → Iterator → WordPress → Create Post.
  • n8n: HTTP Request node → Split In Batches → WordPress node.

Stuck somewhere?

We'll help you set up your first bot for free during the public beta. Book a quick call or email us.