Example: AI-Driven Market Research (Using the the CLI)
To better understand how to run a workflow using Peeps AI, let's walk through a practical example. This example demonstrates how to set up a simple multi-agent system to automate a market research task.
Project Setup
Start by creating a new Peeps AI project:
peepsai create group market_research
This command generates the basic folder structure with necessary configuration files.
Defining Agents and Tasks
agents.yaml
Define two agents: a Researcher and a Data Analyst.
# src/market_research/config/agents.yaml
researcher:
role: "Market Research Specialist"
goal: "Identify key trends in the AI industry."
backstory: "An expert with years of experience analyzing industry trends and market data."
data_analyst:
role: "Data Analyst"
goal: "Analyze collected data and generate actionable insights."
backstory: "Proficient in data interpretation and presenting findings clearly."
tasks.yaml
Outline the tasks for each agent.
# src/market_research/config/tasks.yaml
collect_data:
description: "Research the latest AI trends for 2024."
expected_output: "A list of key trends and emerging technologies."
agent: researcher
analyze_data:
description: "Analyze the research findings to identify actionable insights."
expected_output: "A detailed report summarizing key trends with recommendations."
agent: data_analyst
output_file: insights_report.md