{
  "name": "AI Content Writer to WordPress",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [{"field": "hours", "hoursInterval": 24}]
        }
      },
      "id": "f6a7b8c9-d0e1-2345-fabc-456789012345",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [250, 300]
    },
    {
      "parameters": {
        "model": "gpt-4o-mini",
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "You are an expert SEO content writer. Write a blog article in HTML format with proper headings (h2, h3), paragraphs, and bullet points. The article should be 800-1200 words, engaging, and optimized for search engines."
            },
            {
              "role": "user",
              "content": "Write an article about the latest trends in digital marketing for small businesses in 2024."
            }
          ]
        },
        "options": {
          "maxTokens": 2000,
          "temperature": 0.8
        }
      },
      "id": "a7b8c9d0-e1f2-3456-abcd-567890123456",
      "name": "OpenAI Generate Article",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.2,
      "position": [500, 300]
    },
    {
      "parameters": {
        "resource": "post",
        "title": "=Digital Marketing Trends {{ new Date().toISOString().split('T')[0] }}",
        "content": "={{ $json.choices[0].message.content }}",
        "status": "draft",
        "additionalFields": {
          "categories": ["marketing"],
          "format": "standard"
        }
      },
      "id": "b8c9d0e1-f2a3-4567-bcde-678901234567",
      "name": "WordPress Create Post",
      "type": "n8n-nodes-base.wordpress",
      "typeVersion": 1,
      "position": [750, 300]
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [[{"node": "OpenAI Generate Article", "type": "main", "index": 0}]]
    },
    "OpenAI Generate Article": {
      "main": [[{"node": "WordPress Create Post", "type": "main", "index": 0}]]
    }
  },
  "settings": {"executionOrder": "v1"},
  "staticData": null,
  "tags": []
}
