You are helping me build the following AI agent workflow. ## Goal Competitor & Trend Research via Perplexity AI: Analyzes competitor lead strategies and niche challenges to generate SEO-friendly content outlines. ## Specification - What it does: You get SEO-friendly content outlines built from competitor lead strategies and your niche's top challenges. The agent analyzes how rivals generate leads and runs audience research to identify key pain points before creating these actionable plans using Perplexity AI. - Trigger: Run manually (Manual ยท on demand) - Autonomy: You stay in control - Expected setup effort: under an hour - Tools/services involved: - Perplexity AI: Competitor analysis and audience research queries ## Known pitfalls, handle each one explicitly in your implementation 1. Perplexity AI may return outdated information if not configured with real-time search options so always verify the date of the sources cited in the response. 2. The API might truncate long responses due to token limits so implement logic to handle partial results or request follow-up queries for deeper details. 3. Competitor data can be ambiguous without clear context so add explicit instructions to the prompt to focus only on lead generation mechanisms and ignore general brand info. ## Reference implementation https://www.youtube.com/watch?v=Sjc7rcblJY4 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/competitor-trend-research-via-perplexity-ai/ via usecasesforagents.com