This example demonstrates how to create and use an Upsonic Agent with DeepAgent architecture to generate comprehensive landing page images. The example showcases how to leverage Upsonicβs coordination capabilities to manage multiple specialized agents working together to create conversion-optimized landing pages with professional content, design, and SEO elements.Documentation Index
Fetch the complete documentation index at: https://docs.upsonic.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Upsonic framework provides seamless integration for multi-agent systems. This example showcases:- DeepAgent Integration β Using DeepAgent to coordinate specialized sub-agents
- Image Generation β Creating actual landing page images (PNG format, 1536x1024) using OpenAIβs image generation
- Content Creation β Expert copywriting for headlines, value propositions, CTAs, and feature highlights
- Design Recommendations β Color schemes, typography, layout structures, and visual element suggestions
- SEO Optimization β Meta tags, keywords, header structure, and technical SEO elements
- Task Planning β Automatic task decomposition using planning tools
- Memory Persistence β SQLite-based session memory for continuity
- FastAPI Server β Running the agent as a production-ready API server
- Content Writer β Creates compelling, conversion-focused copy
- Designer β Provides design recommendations for visual elements
- SEO Specialist β Optimizes landing pages for search engines
Project Structure
Environment Variables
You can configure the model using environment variables:Installation
Managing Dependencies
api, streamlit, development
Usage
Option 1: Run Directly
Option 2: Run as API Server
http://localhost:8000. API documentation at /docs.
Example API call:
How It Works
| Component | Description |
|---|---|
| DeepAgent | Orchestrator that plans and delegates tasks to subagents |
| Planning Tool | Automatically breaks down landing page generation into manageable steps |
| Content Writer | Creates compelling headlines, value propositions, CTAs, and feature highlights |
| Designer | Recommends color schemes, typography, layout, and visual elements |
| SEO Specialist | Optimizes for search engines with meta tags, keywords, and structure |
| Image Generation Tool | Generates the final landing page image (1536x1024 PNG) |
| Memory | SQLite-based persistence for session continuity |
Example Output
Query:Generated Landing Page Image

Complete Implementation
main.py
orchestrator.py
subagents.py
schemas.py
task_builder.py
upsonic_configs.json
Key Features
DeepAgent Orchestration
The orchestrator uses DeepAgentβs planning capabilities to automatically break down complex landing page generation tasks into manageable steps and delegate them to specialized subagents.Specialized Subagents
Each subagent is optimized for its specific domain:- Content Writer: Creates compelling headlines, value propositions, CTAs, and feature highlights
- Designer: Recommends color schemes, typography, layout structures, and visual elements
- SEO Specialist: Optimizes for search engines with meta tags, keywords, and structure
Image Generation
Uses OpenAIβs image generation capabilities to create high-quality landing page visuals (1536x1024 PNG format) based on all gathered specifications from content, design, and SEO subagents.Memory Persistence
Uses SQLite database for session persistence, allowing the agent to:- Maintain conversation history
- Store generation specifications
- Build upon previous sessions
- Generate summaries for context

