Building an Intelligent Agent for Children’s Storybooks Using Workflow and Multi-Agent Modes in Just One Minute

Case Practice: Children’s StorybookPractice Approach: Attempting both Workflow and Multi-Agent modesPractice Platform: Tencent Cloud Intelligent Agent Development Platform

First, the conclusion Building an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minute: The Multi-Agent mode is extremely simple; after adding plugins and prompts, you can start generating, saving time and effort! However, the images are currently not tiled; the Workflow mode takes more time, but the output is basically consistent with expectations;

Building an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minute1. Building the Workflow ModeKeywords: Loop Body, Text-to-Image Plugin, Code NodeRequirement Breakdown: Keywords -> Storyboard -> Generate Storyboard Scenes and Image Prompts -> Storyboard Scenes and Images -> Output DisplayImplementation Method: Generate 5 storyboard contents based on user input keywords and output a string array -> Convert storyboard content from string numbers to JSON variables through code nodes -> Enter the loop body (the loop body is a sub-workflow to generate images and scenes for each storyboard content and display them) -> EndHere I created two workflows: the main workflow and the loop body workflow

  • Main Workflow Example:

Building an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minute

  • Loop Body Workflow Example:

Building an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minute

  • Specific Building Method:

1. Create a new application and name it (remember to select “Single Workflow Mode”)Building an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minute2. Enter “Workflow Management”, click “New” and select “Manual Input”Building an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minute3. First, create the simplest workflow, input text -> storyboard -> generate images + story scenes -> output to run throughBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minute

  1. Start Node: Unchanged
  2. Select the large model node, rename it to “Storyboard”, add input variable referencing the start node’s SYS.UserQuery, and select the large model DeepSeek V3-0324;

Building an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One MinuteThe system prompt can be written using the large model; the user prompt should specify that it needs to generate storyboard content based on inputBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minutec. After the storyboard node, add two large model branch nodes, namely the story node and the drawing prompt generation nodeBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One MinuteBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minuted. After the drawing node, call the “Text-to-Image” plugin, remembering to reference the output output.content from the previous drawing node in the bodyBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One MinuteIn the above image, click the “Plugin” node to select and add the plugin; search for “Text-to-Image” and select and add it. I chose the limited-time free “Image Generation” pluginBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minutee. Add a reply node, where the previous story and image URL are used as input, and output the content in the reply content boxBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minutef. Finally, connect to the end node, and a simple workflow based on the script of storyboard -> image + story is completed4. After completing this simple workflow, start building the main workflowa. After the start node, there is still a large model node to handle the storyboard. The difference from the previous storyboard node is that the user prompt requires the final output to be a string arrayBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minuteb. After the storyboard node, add a code nodeBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One MinuteBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minutec. After the code node, add a loop nodeBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minuted. Finally, connect to the end node5. Building the Loop Body Workflowa. The input variable of the start node is the input variable storyshot from the loop node in the main workflowBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minuteb. The large model node after the start node is basically the same as the simple workflow6. Return to the main workflow for debugging, input “Beautiful Holiday”, and it starts generating (the image below is a custom front end)Building an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minute2. Building the Multi-Agent Mode1. Create a new applicationBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minute2. Select model DS V3-0324, complete the prompt writing, add the Text-to-Image plugin, and you can start using itBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minute3. Actual Test Results:Building an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One MinuteBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One MinuteBuilding an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One MinuteIt’s incredibly convenient!!!!!!3. ConclusionThere are many ways to create storybooks with AI; in fact, generating based on large model prompts in a question-and-answer format is also possible. However, I still hope to provide a complete organization and arrangement through the use of workflows and Multi-Agent methods, and to build and experiment based on the intelligent agent development platform.Building an Intelligent Agent for Children's Storybooks Using Workflow and Multi-Agent Modes in Just One Minute

Leave a Comment