You are helping me build the following AI agent workflow. ## Goal Task Prioritization with Asana and GPT-4: Every morning at 9 AM, the agent reviews your Asana tasks, uses AI to pick the single most critical one with reasoning. ## Specification - What it does: Every morning at 9 AM, you receive the single most critical Asana task selected by AI based on its urgency, impact, and strategic importance. This process uses your historical context from Pinecone to ensure the recommendation aligns with your long-term goals before saving the detailed reasoning for your review. - Trigger: On a schedule (Scheduled ยท daily 9:00 AM) - Autonomy: You stay in control - Expected setup effort: about an afternoon - Tools/services involved: - Asana: Fetching assigned tasks - OpenAI Chat Model: Analyzing task urgency and strategic importance - Pinecone Vector Store: Retrieving historical context for prioritization - Postgres: Storing prioritized tasks and audit trails ## Known pitfalls, handle each one explicitly in your implementation 1. Pinecone query latency may delay the response, cache frequent historical vectors locally or use smaller batch sizes. 2. Postgres connection pools can exhaust under concurrent loads, configure max connections and implement connection pooling middleware. ## Reference implementation https://n8n.io/workflows/4578 (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/ai-task-prioritization-with-asana-and-gpt-4/ via usecasesforagents.com