-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add README explaining agent workflow
- Loading branch information
1 parent
1881cd4
commit 0cc24bc
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |