Homeā†’First agent

Building Your Visual Story Generator

Let's combine our agents to create a complete visual story generator!

Story Generator

Choose Your Approach

Using a CLI Script

Create a file named story_cli.py:

Run it with:

This script:

  • Uses Python's subprocess to run Naptha CLI commands
  • Handles JSON parsing automatically
  • Creates an output directory for results
  • Saves both story and illustration
  • Provides progress feedback

Requirements:

This method is great for:

  • Automating CLI workflows
  • Quick prototyping
  • Testing different prompts
  • Saving results systematically

Next Steps

Now that you've built your first visual story generator, try:

  • Experimenting with different prompts
  • Adding more agents to the workflow
  • Customizing the output format
  • Building a web interface

Need Help?

Congratulations! You've completed your first Naptha multi-agent application! šŸŽ‰