|
| 1 | +behavior_tree: |
| 2 | + name: "ComplexBehaviorTree" |
| 3 | + root: |
| 4 | + type: "Selector" |
| 5 | + memory: true |
| 6 | + children: |
| 7 | + - type: "Sequence" |
| 8 | + name: "Search Selector" |
| 9 | + memory: true |
| 10 | + children: |
| 11 | + - type: "Action" |
| 12 | + name: "Search YouTube" |
| 13 | + agent: "YouTube Researcher v3" |
| 14 | + instructions: | |
| 15 | + Use the function/tool get_search_term to load a search term from the list of search terms. |
| 16 | + Query the "{search_term}" to search for "this week" videos on YouTube. |
| 17 | + Use the filter "this week" to search for videos on YouTube. |
| 18 | + then for each video download the transcript and determine relevance to the {search_term} |
| 19 | + then select a single video that is most relevant to the search term. |
| 20 | + Summarize the content of the video into 5 paragraphs, |
| 21 | + be sure to include a link to the video and highlight the link as a reference for the content. |
| 22 | + and then save the transcript summarizations to a file called youtube_transcripts.txt |
| 23 | + Make sure to save the search term at the top of the file. |
| 24 | + Always make sure to use save_file tool/function to save the file before moving on. |
| 25 | + If you encounter any errors, please return just the word FAILURE. |
| 26 | + - type: "Action" |
| 27 | + name: "Write blog" |
| 28 | + agent: "Medium Blogger v2" |
| 29 | + instructions: | |
| 30 | + Load the file called youtube_transcripts.txt, |
| 31 | + analyze the contents for references to the search term |
| 32 | + at the top of the file and then select |
| 33 | + the most exciting and relevant content related to the search term but also: |
| 34 | + educational, tutorial, informative, demonstation, to blog on Medium. |
| 35 | + |
| 36 | + Write a blog in Word docx that is relevant to the content of the summarization, |
| 37 | + Be sure the blog captures the spirit of the themes and topic content, |
| 38 | + The name of the file should be {search term}_blog_{timestamp}.docx (You can get the timestamp using the get_current_timestamp() tool/function.) |
| 39 | + RULES: |
| 40 | + Avoid quoting individuals or organizations but rather generalize their statements. |
| 41 | + IMPORTANT: Be sure to add a reference to the video link in the blog post. |
| 42 | + Focus on new and innovative content. |
| 43 | + Be sure to highlight the technology theme/topic that was summarized. |
| 44 | + Make sure and add a compelling title for the blog post. |
| 45 | + Use the social strategy of 'the one good paragraph' to make the article stand out. A single condensed paragraph that is punchy and retweetable somewhere in the newsletter that summarizes the content of the entire blog and can be used as a tweetable quote. |
| 46 | + Be sure to add a quote from "the one good paragraph" into the blog as a paragraph section. |
| 47 | + |
| 48 | + At the top of the blog under the first section add the following disclainer in full: |
| 49 | + Disclaimer: this blog is entirely written by a team of agents including the images, layout and content. The process works by having the agents search, review and summarize the transcripts of YouTube videos, the summarized content is then written into a blog. If you want to understand more check out my book AI Agents In Action. My contribution is the selection of the stories to publish, copy/pasting content and writing the agents. |
| 50 | + As your last operation write the blog filename to a file called blog_filenames.txt. |
| 51 | + If you encounter any errors, please return just the word FAILURE. |
| 52 | + - type: "Action" |
| 53 | + name: "Cleanup" |
| 54 | + agent: "File Manager" |
| 55 | + instructions: | |
| 56 | + Delete the youtube_transcripts.txt file. |
| 57 | + Delete the blog_filenames.txt file. |
| 58 | + If you encounter any errors, please return just the word FAILURE. |
| 59 | + - type: "Action" |
| 60 | + name: "Cleanup" |
| 61 | + agent: "File Manager" |
| 62 | + instructions: | |
| 63 | + Delete the youtube_transcripts.txt file. |
| 64 | + Delete the blog_filenames.txt file. |
| 65 | + If you encounter any errors, please return just the word FAILURE. |
0 commit comments