HARPA.AI
LIBRARYUSE CASESGUIDESAI COMMANDSBLOG

๐Ÿ“šย ย WordPress Content Generator (via Webhook)

Uses the web page content to write a WordPress-ready blog post in JSON format and sends it to Make.com.

Created by HARPA AI
Updated on Nov 11, 07:30
Installed 266 times
SENDS HTTP REQUESTS

How to Use

IMPORT COMMAND

Content

- type: group
  steps:
    - type: calc
      func: set
      param: g.wordpress.format
      format: json
      value:
        title: short, catchy title for the article
        preview: brief one-sentence description
        content: >-
          markdown formatted blog post with #-style headings (#, ##, and ###)
          and line breaks using 

          . The content must be SEO-optimized, well-researched, and provide
          valuable insights, opinions, or advice related to the subject
        seotitle: concise and keyword-rich title for SEO purposes
        meta: brief seo-optimized meta description
        keyword:
          - LSI keyword 1
          - LSI keyword 2
          - LSI keyword 3
          - LSI keyword 4
          - LSI keyword 5
      condition: '{{g.wordpress.format}} = '
      label: SET DEFAULT FORMAT
    - type: calc
      func: set
      param: g.wordpress.instructions
      format: auto
      value: >-
        Create a comprehensive, detail-rich content, adhering to Google's E-A-T
        guidelines, with the goal of ranking high on Google.

        - Do not include the publication date or mention the author of the
        article, even if it's referenced somewhere.

        - Use an H1 tag for the article's title, H2s for main sections, and H3s
        for sub-sections.

        - Employ keyword-rich, meaningful subheadings that are direct and
        precise.

        - Focus on creating in-depth, informative paragraphs without an
        introduction or conclusion.
      condition: '{{g.wordpress.instructions}} = '
      label: SET DEFAULT INSTRUCTIONS
    - type: say
      message: >-
        ๐Ÿ’ก This command uses opened web page content to write a WordPress-ready
        blog post in JSON format and sends it to Make.com. 


        Make.com Scenario Template:
        https://eu2.make.com/templates/5861-create-wordpress-posts-from-incoming-webhook-data


        Template includes 2 modules. Copy the Webhook URL to HARPA AI from the
        1st module. Connect Make.com to your WordPress editor through API in the
        second module (this is usually done by adding the Make.com PlugIn in
        Wordpress).


        You can also send JSON directly to WordPress if more convenient. The
        benefit of using Make.com's scenario is that it allows you to customize
        the JSON fields before sending them to WordPress.
    - type: ask
      param: g.wordpress.webhook
      message: |-
        Enter your Webhook URL.

        Currently: 
        ```
        {{g.wordpress.webhook}}
        ```
      options: null
      default: ''
      vision:
        enabled: false
        mode: area
        hint: ''
        send: true
      label: ENTER WEBHOOK URL
      optionsInvalid: false
    - type: ask
      param: g.wordpress.format
      message: >-
        โš™๏ธ The command is made for the standard JSON format used by WordPress,
        but you can change the template and revert to the default setting at any
        time.


        **Current template:** 


        {{g.wordpress.format}}
      options: null
      default: ''
      vision:
        enabled: false
        mode: area
        hint: ''
        send: true
      optionsInvalid: false
      label: ASK FORMAT
    - type: calc
      func: extract-json
      to: g.wordpress.format
      param: g.wordpress.format
      index: ''
    - type: ask
      param: g.wordpress.instructions
      message: >-
        ๐Ÿ’ฌ You can customize additional writing instructions not included in the
        JSON format by describing the required writing style or other features.
        Currently:


        ```markdown

        {{g.wordpress.instructions}}

        ```
      options: null
      default: ''
      vision:
        enabled: false
        mode: area
        hint: ''
        send: true
      optionsInvalid: false
      label: ASK INSTRUCTIONS
  label: FIRST RUN SETTINGS
  condition: '{{g.wordpress.webhook}} ='
- type: ask
  param: option
  message: |-
    **JSON format:**

    {{g.wordpress.format}}

    **Style Instructions:**

    ```markdown
    {{g.wordpress.instructions}}
    ```

    **Webhook URL:**

    ```
    {{g.wordpress.webhook}}
    ```
  options:
    - label: โœ… START WRITING
      value: start
    - label: โš™๏ธ SETTINGS
      value: settings
  default: ''
  vision:
    enabled: false
    mode: area
    hint: ''
    send: true
  optionsInvalid: false
- type: jump
  to: SET DEFAULT FORMAT
  condition: '{{option}} = settings'
- type: gpt
  prompt: >-
    Please ignore all previous instructions. 

    Respond only in {{language}}.


    Act as a professional blogger with expertise in the specific subject matter.
    I will provide you with a webpage content. 


    I want you to find the main content, analyze it, and write a blog post based
    on the data obtained.


    Follow the instructions: 


    {{g.wordpress.instructions}} 


    - Respond only with a JSON, no extra comments or general phrases, fill in
    all fields that I specify below.

    - Do not echo my prompt.

    - Wrap your JSON response in a code block.

    - Respond with a JSON file containing the following fields and adhering to
    this format:


    ```

    {
      "title": "short, catchy title for the article",
      "preview": "brief one-sentence description",
      "content": "markdown formatted blog post with #-style headings (#, ##, and ###) and line breaks using \n. The content must be SEO-optimized, well-researched, and provide valuable insights, opinions, or advice related to the subject",
      "seotitle": "concise and keyword-rich title for SEO purposes",
      "meta": "brief seo-optimized meta description",
      "keyword": [
        "LSI keyword 1",
        "LSI keyword 2",
        "LSI keyword 3",
        "LSI keyword 4",
        "LSI keyword 5"
      ]
    }

    ```


    - Make sure you filled in all JSON fields according to my instructions.


    [WEBPAGE CONTENT]: {{page}}


    [Your JSON response with all fields, as in my example]:
  isolated: true
  param: gpt
- type: calc
  func: extract-json
  to: json
  param: gpt
  index: ''
- type: request
  url: '{{g.wordpress.webhook}}'
  method: auto
  headers: null
  body: '{{json}}'
  auth:
    enabled: false
    username: ''
    password: ''
  param: ''
  bodyInvalid: true
Contact us
HomeUse CasesGuidesPrivacy PolicyTerms of Service
CAN WE STORE COOKIES?
Our website uses cookies for the purposes of accessibility and security. They also allow us to gather statistics in order to improve the website for you. More info: Privacy Policy