66c2bbec8b
- Dashboard with campaign management, asset gallery, and publishing queue - 7-agent pipeline: trend scout, research, scripts, ad creative, video, copy, distribution - Campaign form with screenshot upload, goal picker, platform selection - Campaign detail view with Details/Pipeline/Assets/Chat tabs - Two-set image generation: Gemini AI (NanoBanana MCP) + Canvas Design posters - Remotion video rendering with phone.png frame and real screenshot alignment - honeyDue branding: blue #0079FF, orange #FF9400, Inter font, warm off-white - Asset cards with source badges (Gemini/Canvas/Remotion/Playwright) - Markdown/JSON render endpoint for viewing pipeline outputs as HTML - Settings page with Tavily, Gemini, Postiz, Nextdoor integration management - Claude Chat for campaign feedback loop with streaming SSE - Postiz publishing modal with scheduling - Auth with NextAuth credentials + JWT sessions - SQLite via Prisma with better-sqlite3 adapter Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
55 lines
1.9 KiB
JavaScript
55 lines
1.9 KiB
JavaScript
import { tavily } from "@tavily/core";
|
|
import { writeFileSync } from "fs";
|
|
|
|
const client = tavily({ apiKey: process.env.TAVILY_API_KEY });
|
|
|
|
const queries = [
|
|
{
|
|
name: "trending_hooks",
|
|
query: "trending social media hooks productivity apps 2026 viral opening lines scroll-stopping techniques instagram tiktok",
|
|
options: { topic: "news", days: 7, maxResults: 10 }
|
|
},
|
|
{
|
|
name: "competitor_ads",
|
|
query: "productivity app ad campaigns 2026 Notion Todoist TickTick Any.do advertising strategy messaging",
|
|
options: { topic: "news", days: 7, maxResults: 10, searchDepth: "advanced" }
|
|
},
|
|
{
|
|
name: "viral_formats",
|
|
query: "viral content formats instagram reels tiktok 2026 trending templates transitions app promotion",
|
|
options: { topic: "news", days: 7, maxResults: 10, searchDepth: "advanced" }
|
|
},
|
|
{
|
|
name: "audience_pain_points",
|
|
query: "productivity app complaints wishlist 2026 professionals time management frustrations reddit reviews",
|
|
options: { topic: "news", days: 7, maxResults: 10 }
|
|
},
|
|
{
|
|
name: "seasonal_timely",
|
|
query: "upcoming events March April 2026 productivity awareness days professional development seasonal marketing moments",
|
|
options: { topic: "news", days: 14, maxResults: 10 }
|
|
}
|
|
];
|
|
|
|
async function runSearches() {
|
|
const results = {};
|
|
for (const q of queries) {
|
|
console.log(`Searching: ${q.name}...`);
|
|
try {
|
|
const res = await client.search(q.query, q.options);
|
|
results[q.name] = res.results || [];
|
|
console.log(` → ${results[q.name].length} results`);
|
|
} catch (err) {
|
|
console.error(` → Error: ${err.message}`);
|
|
results[q.name] = [];
|
|
}
|
|
}
|
|
writeFileSync(
|
|
"/Users/treyt/Desktop/code/claude_marketing/pipeline/outputs/test_campaign_e2e_20260323/raw_search_results.json",
|
|
JSON.stringify(results, null, 2)
|
|
);
|
|
console.log("Done. Raw results saved.");
|
|
}
|
|
|
|
runSearches();
|