Delaverse AI Knowledge Base

Back to Home

Knowledge Base

Delaverse AI Platform v2.0

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

Marketing Teams

Create timely, SEO-optimized articles based on news trends.

Content Managers

Automate content generation from external news sources.

Brand Managers

Ensure consistent tone and style across blog posts.

Development Teams

Integrate with WordPress and external APIs seamlessly.

Prerequisites

Access to a Delaverse account.
Content style guide in a Google Doc and a PDF brand tone guide ready for upload.
Access to a news API (e.g., The Guardian API) with an API key.
Google account access for Google Docs Nodes.
Access to a WordPress site with admin credentials or an application password.
Access to Telegram with a bot token for the Telegram Node.

Step 1: Create a New Project

Log in to Delaverse: Visit playground.delaverse.ai and sign into your Delaverse account.
Select New Project: On the projects dashboard, click the New Project box.
Name the Project: Enter a title, e.g., "WordPress News Content Generation," in the Project Name field and click Create Project.
Enter the Playground: You'll be directed to the project's Playground, where you can add nodes.

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.

1
From the right-hand menu, click Google Docs Node.
2
Click the node and enter a title, e.g., "راهنمای نگارش مقاله" (Article Style Guide).
3
Sign in with your Google account and create a new document.
4
Enter the style guide (e.g., SEO rules, structure, tone).
5
Return to the Playground and click Update.
6
Click Save Changes and close with the top-left X button.
Suggested Content:
Guidelines for WordPress articles: educational tone, 1500–2000 words, SEO-optimized with 1–2% keyword density, H2/H3 headings, and a clear call-to-action.
Example: "مقالات باید آموزشی، با لحن دوستانه و ساختار سئو‌شده باشند. از هدینگ‌های H2 و H3 برای بخش‌بندی استفاده کنید."

2.2. File Database Node

Uploads a PDF brand tone guide for content.

1
From the right-hand menu, click File Database Node.
2
Click the node and enter a title, e.g., "راهنمای لحن برند" (Brand Tone Guide).
3
Upload the PDF file containing brand tone guidelines.
4
Review the list of uploaded files to confirm.
5
Click Save Changes and close with the top-left X button.
Suggested Content:
PDF with brand voice details: tone (e.g., educational, friendly), target audience (e.g., professionals), and content examples.
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:

1
From the right-hand menu, click API Node.
2
Click the node and enter a title, e.g., "خبرخوان API" (News API).
3
Enter the base URL (e.g., https://content.guardianapis.com).
4
Configure Authentication: Select API Key and enter your API key.
5
Add Header: Click Add Header, set Name to "Accept" and Value to "application/json".
6
Click Save Changes and close with the top-left X button.

Add Request API Node:

1
From the right-hand menu, click Request API Node.
2
Click the node and enter a title, e.g., "درخواست داده خبری" (News Data Request).
3
In the Used API section, select the previous API Node.
4
Choose the request type (e.g., GET) and enter the endpoint (e.g., /search).
5
Configure tabs: Request, Headers, Parameters (like these query parameters: page-size:1, section: technology, show-fields: headline,shortUrl,bodyText), Body, Response (with this template: $.response.results[*].fields['headline', 'bodyText', 'shortUrl']).
• Example Parameters: Add "api-key" with your API key value.
6
Click Execute Request to view results.
7
Connect Nodes: Connect the API Node output to the Request API Node input.
8
Click Save Changes and close with the top-left X button.
Suggested Content:
• News articles or summaries with fields like title, topic, and content (e.g., technology trends, global events).
Important: Configuring APIs is straightforward with the correct credentials. If you lack expertise to set up API connections, consult your company's technical team. If no technical team is available, submit a ticket to Delaverse's support team to request workflow creation. We'll provide a cost invoice based on your subscription level, and after payment, we'll collaborate to build the workflow to your needs.

Step 3: Connect Data to Vector Store Node

To unify the style guide and brand tone data from Google Docs and File Database:

1
Add Node: From the right-hand menu, click Vector Store Node.
2
Configure Node: Click the node and enter a title, e.g., "دیتابیس محتوا" (Content Database). Click Update.
3
Connect Nodes: Connect the outputs of the Google Docs Node and File Database Node to the input of the Vector Store Node.
4
Verify Data: Click the Vector Store Node to ensure data is correctly aggregated.
5
Save Changes: Click Save Changes and close the editor with the top-left X button.
Important Note: The Vector Store Node stores data statically. To update the style guide or brand tone:
  • 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:

1
Add Node: From the right-hand menu, click Scheduler Node.
2
Configure Node: Click the node and enter a title, e.g., "زمان‌بندی محتوا" (Content Scheduler).
3
Schedule Settings:
  • 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.
4
Connect Nodes: Connect the Scheduler Node output to the Request API Node input to trigger data retrieval.
5
Save Changes: Click Save Changes and close with the top-left X button.

Step 5: Add the AI Assistant Node

This node generates SEO-optimized WordPress articles based on news data, style guide, and brand tone.

1
Add Node: From the right-hand menu, click AI Assistant Node.
2
Configure Node: Click the node and enter a title, e.g., "تولیدکننده مقاله خبری" (News Article Generator).
3
Select AI Model: Choose an AI model (e.g., Open AI).
4
Instructions: Select the News Content Generation template or edit the instruction (see below).
5
Connect Nodes:
  • 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.
6
Save Changes: Click Save Changes and close the editor with the top-left X button.

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:

1
Adding the Node:

• Select WordPress Node from the right-hand menu and drag it onto the canvas.• Click the node and enter a title, e.g., "انتشار مقاله خبری" (News Article Publisher).

2
WordPress Site URL:

• Enter the URL of your WordPress site (e.g., https://example.com).• Ensure the URL is correct for proper API communication.

3
Authentication Setup:

• Choose one of three authentication methods:
- Application Password (Recommended):
• Log into your WordPress admin panel.
• 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.
• Copy the password and enter it with your username in the node.- Basic Authentication:
Enter your WordPress username and password. - JWT Token:
Provide a valid JWT token for advanced systems.

4
Advanced Settings:

View the node's status (Active/Inactive). No additional configuration required.

5
Test Connection:

Click Test Connection and Retrieve Data to verify the API connection. Confirm successful communication with your WordPress site. Click Save Changes and close with the top-left X button.

6
Publishing Settings:

• Reopen the node to configure:
- Default Post Status: Select "Publish" or "Draft."
- 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).
• Click Save Changes.

7
Connections and Integration:

Input: Connect the AI Assistant Node output to the WordPress Node input for article content. Output: None required, as the node publishes directly to WordPress.• Save Changes and close with the top-left X button.

Step 7: Connect to the Telegram Node (Optional)

To deliver article summaries and workflow status updates via Telegram:

1
Create a Telegram Bot:

• In Telegram, go to @BotFather, send /start, then /newbot.
• Choose a name, e.g., @NewsBot, and copy the bot token.

2
Configure Telegram Node:

Add Node: From the right-hand menu, click Telegram Node.
• Enter the bot token and click Test Connection.
Configure Advanced Settings:
- Welcome Message: "سلام! آماده دریافت خلاصه مقالات خبری هستید؟ 😊"
- 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.
• Click Register and Continue to confirm connectivity.

3
Connect Nodes:

Connect the AI Assistant Node output to the Telegram Node input.

4
Test the Bot:

Message the bot (e.g., /start) to verify it sends summaries and status updates.

5
Save Changes:

Click Save Changes and close with the top-left X button.

Key Tips for Success

Data Source Setup: Ensure Google Docs, File Database, and API credentials are accurate and up-to-date.
Training Content: Use real API data (e.g., news articles) for best results.
Persian Language: Keep all settings and outputs in Persian for local accessibility.
Testing: Verify articles in WordPress and summaries in Telegram before scheduling.
Continuous Saving: Click Save Changes after every modification to avoid data loss.

Final Output

Content style guide and brand tone are unified from Google Docs and File Database in the Vector Store.
News data is retrieved from the API (e.g., The Guardian API).
SEO-optimized articles (1500–2000 words) are generated and published to WordPress with proper formatting.
Article summaries are sent via Telegram.
An automated system for generating and publishing news-based WordPress content is established.

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.