Skip to content

Commit

Permalink
add README explaining agent workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrank-summit committed Oct 26, 2024
1 parent 1881cd4 commit 0cc24bc
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions auto-content-creator/agents/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Auto Content Creator Agent

## Workflow Diagram

```mermaid
graph TD
START --> researchNode{Research Node}
researchNode -->|research needed| webSearch
researchNode -->|no research needed| generate
webSearch --> generate
generate -->|score < 9 & iterations < 10| reflect
generate -->|score >= 9 or iterations >= 10| END
generate -->|received feedback| processFeedback
reflect --> generate
processFeedback --> generate
```

### Workflow Steps Explanation:

1. **Start**: The workflow begins when a content creation request is received
2. **Research Node**: Dynamically decides if research is needed by analyzing:
- Current context (initial request vs feedback)
- Nature of the request/feedback
- Type of information needed
3. **Generate**: Creates or updates content based on instructions/research/feedback
4. **Decision Points**:
- If reflection score >= 9 or max iterations reached → END
- If human feedback received → Process Feedback
- Otherwise → Reflect
5. **Reflect**: Evaluates content quality and provides a score
6. **Process Feedback**: Incorporates human feedback to improve content
7. **End**: Returns final content when quality threshold is met

The workflow uses dynamic research decisions, performing research only when it would materially improve the response to the current request, whether that's an initial request or feedback iteration.

0 comments on commit 0cc24bc

Please sign in to comment.