{
"nodes": [
{
"id": "fetch_company",
"type": "http",
"parameters": {
"method": "GET",
"url": "https://api.example.com/company/{{$input.company_id}}"
}
},
{
"id": "analyze_company",
"type": "plai_agent",
"depends_on": ["fetch_company"],
"parameters": {
"agent_name_slug": "analyzer",
"input": "Analyze this company data:\n{{$nodes.fetch_company.body | jsonify}}"
}
},
{
"id": "scrape_news",
"type": "firecrawl",
"depends_on": ["fetch_company"],
"parameters": {
"action": "scrape",
"url": "{{$nodes.fetch_company.body.website}}"
}
},
{
"id": "combine_insights",
"type": "plai_agent",
"depends_on": ["analyze_company", "scrape_news"],
"parameters": {
"agent_name_slug": "synthesizer",
"input": "Company: {{$input.company_name}}\n\nAnalysis: {{$nodes.analyze_company.output}}\n\nRecent news: {{$nodes.scrape_news.markdown}}"
}
},
{
"id": "final_report",
"type": "markdown_report",
"depends_on": ["combine_insights"],
"parameters": {
"title": "Report for {{$input.company_name}}",
"sections": [
{
"title": "Summary",
"content_nodes": [
{"node_id": "combine_insights"}
]
}
]
}
}
]
}