LoopAI Example

Here is an example of a content creation loop with loop.yaml

#./loops/example-loop.yaml
loop:
  name: content_creation
  steps:
    - name: generate_idea
      action: gpt_model
      input: 
        prompt: "Generate content ideas based on the latest SEO trends."
      output: ideas.yaml
    - name: create_draft
      action: gpt_model
      input:
        prompt: "Create a content draft based on the following idea: {ideas.yaml}"
      output: draft.md
    - name: optimize_seo
      action: seo_tool
      input:
        file: draft.md
      output: optimized_draft.md
    - name: schedule_post
      action: cms_publish
      input:
        file: optimized_draft.md
        schedule_time: "2024-06-07T09:00:00Z"
    - name: monitor_performance
      action: analytics_tool
      input:
        url: "http://example.com/{post_id}"
      output: performance_report.yaml
    - name: adjust_strategy
      action: gpt_model
      input:
        prompt: "Analyze the performance report and suggest strategy adjustments: {performance_report.yaml}"
      output: strategy.yaml