Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Blog Writing Automation Agent Kit

Demo

Blog Writing Automation is an AI-powered tool built with Lamatic.ai that automates the generation and publishing of blog posts. It can be triggered externally via webhooks or scheduled tasks to maintain a consistent content pipeline.


🛠️ How It Works (Step-by-Step)

  1. External Trigger: An external webhook (e.g., from CRM, Zapier, or a scheduler) signals the agentkit to start a new blog post.
  2. Payload Extraction: The agent fetches the topic, target keywords, and stylistic instructions from the trigger payload.
  3. AI Drafting & SEO: The agent drafts a blog post using AI, ensuring deep SEO optimization, coherence, and technical accuracy.
  4. Review Phase: The draft can be reviewed (optionally by a human or another AI agent) before being finalized for publishing.
  5. Multi-Platform Publishing: The post is automatically published to a CMS (WordPress, Ghost, etc.) or a static blog platform via API.
  6. Status Monitoring: Logs and execution status of the publishing pipeline are maintained and visible in the dashboard.

🔑 Setup

1. Lamatic Flows

Before running this project, you must build and deploy the following flows in Lamatic:

  • Drafting Flow: Input (topic, keywords) -> Output (content or draft).
  • SEO Flow: Input (draft, keywords) -> Output (optimized_content or content).
  • Publish Flow: Input (content, title) -> Output (publish_status, url).

2. Environment Variables

Create a .env file in this directory and set the following keys:

# Lamatic Flow IDs
AUTOMATION_BLOG_DRAFTING = "FLOW_ID_HERE"
AUTOMATION_BLOG_SEO = "FLOW_ID_HERE"
AUTOMATION_BLOG_PUBLISH = "FLOW_ID_HERE"

# Lamatic Connection
LAMATIC_API_URL = "https://api.lamatic.ai" # Or your project-specific GraphQL endpoint
LAMATIC_PROJECT_ID = "YOUR_PROJECT_ID"
LAMATIC_API_KEY = "YOUR_API_KEY"

3. Install & Run

npm install
npm run dev

📂 Repo Structure

  • /actions/orchestrate.ts: Handles the multi-step orchestration logic and field mapping.
  • /app/page.tsx: Premium dashboard for manual triggers and status monitoring.
  • /orchestrate.js: Configuration for flow dependencies and schemas.
  • /config.json: Metadata for the AgentKit repository.

🤝 Contributing

Refer to the main CONTRIBUTING.md for global standards and coding patterns.