WordPress Content Generation with API
Build intelligent workflows to generate SEO-optimized WordPress articles by sourcing content from news APIs, publish them directly to your WordPress site, and deliver summaries via Telegram with AI-powered creativity.
Target Audiences
Prerequisites
Step 1: Create a New Project
Step 2: Add Content Input Nodes
To generate WordPress articles, input data comes from three sources: Google Docs (style guide), File Database (PDF brand tone guide), and a news API (content source). Configure each node as follows.
2.1. Google Docs Node
Uploads the content style guide for article writing.
• Example: "مقالات باید آموزشی، با لحن دوستانه و ساختار سئوشده باشند. از هدینگهای H2 و H3 برای بخشبندی استفاده کنید."
2.2. File Database Node
Uploads a PDF brand tone guide for content.
• Example: A 10-page PDF outlining tone for blog posts and SEO best practices.
2.3. API and Request API Nodes
Retrieve news data from an external API (e.g., The Guardian API).
Add API Node:
Add Request API Node:
• Example Parameters: Add "api-key" with your API key value.
Step 3: Connect Data to Vector Store Node
To unify the style guide and brand tone data from Google Docs and File Database:
- Delete the associated file in the Vector Store.
- Disconnect the Google Docs or File Database Node.
- Update the source data (Google Doc or PDF).
- Reconnect the nodes to reload updated data.
Step 4: Add the Scheduler Node
To schedule periodic execution of the workflow:
- Choose a schedule type:
- Interval: Set a value and unit (e.g., 1 day) and timezone (e.g., Asia/Tehran).
- Cron Expression: Enter a pattern, e.g., "0 8 * * *" for daily at 8 AM.
- Status: Toggle to On to activate.
Step 5: Add the AI Assistant Node
This node generates SEO-optimized WordPress articles based on news data, style guide, and brand tone.
- Connect the Request API Node output (news data) directly to the AI Assistant Node's input.
- Connect the Vector Store Node output (style guide, brand tone) to the AI Assistant Node's input.
News Content Generation Instruction Template
You are an AI assistant for generating WordPress articles from news APIs. Your goal is to create SEO-optimized articles (1500–2000 words) in Persian, based on news data, following the style guide and SEO principles. Follow these steps: 1. Retrieve news data from the Request API Node (e.g., https://content.guardianapis.com/search?q=technology). 2. Select the most recent or relevant news item (e.g., based on publication date or topic relevance) and extract its title and content as the article topic. 3. Generate an article based on the selected news item: - Use the article style guide from Google Doc (ID: {your google doc ID}) and brand tone guide from File Database (ID: {your file database file ID}) in the Vector Store. - Write the article in Persian with an educational, friendly tone (per brand guidelines). - Word Count: Strictly 1500–2000 words (count internally, don't display). - SEO Principles: - Keyword density: 1–2% for a primary keyword derived from the news title or topic. - Structure: - Title: Create a title (with primary keyword) as plain text on the first line (no "Title:" prefix). - Body: - Introduction (100–150 words, no heading, includes primary keyword). - Main sections with H2 and H3 headings (use markdown tags, e.g., ##, ###). - Varied, engaging paragraphs summarizing and analyzing the news. - Conclusion (100–150 words, no heading, with clear call-to-action). - Exclude meta descriptions, sources, or extra sections. - Output: Full article in markdown format (title + body). 4. Send the full article to the WordPress Node for publishing. 5. Send a summary (e.g., title, keyword, 50-word excerpt) to Telegram with a professional, friendly tone.
Step 6: Connect to the WordPress Node
To publish generated articles directly to your WordPress site:
1Adding the Node:
2WordPress Site URL:
3Authentication Setup:
• Go to Users → Profile → Application Passwords.
• Enter an application name and generate a password.
• Copy the password and enter it with your username in the node.
4Advanced Settings:
5Test Connection:
6Publishing Settings:
- Auto-Publish: Enable for immediate publishing.
- Default Category: Choose a category (e.g., News).
- Post Format: Select "Standard."
- Tags: Add relevant tags (e.g., News, Technology).
7Connections and Integration:
Step 7: Connect to the Telegram Node (Optional)
To deliver article summaries and workflow status updates via Telegram:
1Create a Telegram Bot:
• Choose a name, e.g., @NewsBot, and copy the bot token.
2Configure Telegram Node:
• Enter the bot token and click Test Connection.
• Configure Advanced Settings:
- Group Access: Enable if needed for team collaboration.
- Access Restriction: Select All for public access.
- Message Limit: Set to, e.g., 10 messages per minute.
3Connect Nodes:
4Test the Bot:
5Save Changes:
Key Tips for Success
Final Output
General Note on Workflow Customization
This workflow, like all workflows in Delaverse's knowledge base, is designed as a sample for educational purposes. Users can extensively customize nodes, settings, and input sources to meet personal or organizational needs. For assistance, consult our 24/7 support chatbot or submit a ticket for guidance. If you're unable to build or modify the workflow yourself, request professional workflow creation via a ticket; we'll provide a cost invoice based on your subscription level, and after payment, we'll collaborate to build it. For new node development (e.g., a custom node not yet available), submit a ticket with your requirements, noting that such requests may incur higher costs due to development efforts. Our team is here to ensure your automation success! 😊
Ready to Transform Your WordPress News Content Creation?
Start building your intelligent news-based content generation workflow today. Automate SEO-optimized article creation from news APIs, publish directly to your site, and streamline content management with AI-powered precision that boosts visibility and engagement.