text stringlengths 0 59.1k |
|---|
url: "file:./.voltagent/memory.db", |
logger: logger.child({ component: "libsql" }), |
}), |
}); |
// Create the supervisor agent with all subagents |
const supervisorAgent = createSupervisorAgent(memory); |
// Initialize VoltAgent with Instagram ad generation system using Gemini AI |
new VoltAgent({ |
agents: { |
InstagramAdSupervisor: supervisorAgent, |
}, |
server: honoServer({ |
configureApp: (app) => { |
app.use("/output/*", serveStatic({ root: "./" })); |
}, |
}), |
logger, |
observability: new VoltAgentObservability({ |
storage: new LibSQLObservabilityAdapter({ |
url: "file:./.voltagent/observability.db", |
}), |
}), |
}); |
``` |
</details> |
**Components:** |
**Memory System:** |
- `LibSQLMemoryAdapter` for SQLite persistence |
- 100-message limit per conversation |
- Shared memory across agents |
- Context retention for agent references |
**Observability:** |
- `LibSQLObservabilityAdapter` for trace logging |
- VoltOps platform integration |
- Agent interaction and tool execution tracking |
- Decision path monitoring |
**VoltAgent Core:** |
- `InstagramAdSupervisor` as main orchestrator |
- Automatic subagent management (LandingPageAnalyzer, InstagramAdCreator) |
- Pino logger for structured logging |
- End-to-end workflow execution |
### Running the Agent |
The agent handles Instagram ad generation via conversational interface. |
 |
Usage: |
#### Step 1: Connect to VoltOps |
1. Start the server with `npm run dev` |
2. Open [console.voltagent.dev](https://console.voltagent.dev) |
3. Your local instance automatically connects |
4. Select the `InstagramAdSupervisor` agent |
#### Step 2: Generate an Ad |
Provide a prompt like: |
``` |
Go to https://www.amazon.com/Roku-Streaming-Stick-Plus-2025/dp/B0DXY833HV and extract brand information for Instagram ad |
``` |
The supervisor will: |
1. Analyze the landing page |
2. Extract brand information |
3. Capture screenshots |
4. Generate creative brief |
5. Create Instagram ad with Gemini |
6. Return the ad with preview |
### Next Steps |
Potential enhancements: |
1. **Multi-platform support**: Extend to Facebook, Twitter, LinkedIn ad formats |
2. **A/B testing variations**: Generate multiple versions for testing |
3. **Brand guidelines integration**: Load and apply specific brand rules |
4. **Campaign management**: Track and organize multiple ad campaigns |
5. **Performance analytics**: Integrate with ad platform APIs for metrics |
6. **Template library**: Save successful ad templates for reuse |
7. **Batch processing**: Generate ads for entire product catalogs |
8. **Localization**: Create region-specific ad variations |
9. **Video ad generation**: Extend to Instagram Reels and Stories |
10. **Competitive analysis**: Compare generated ads with competitor campaigns |
11. **Cost optimization**: Estimate and optimize ad spend recommendations |
12. **Approval workflows**: Add review and approval stages before publishing |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.