You are helping me build the following AI agent workflow. ## Goal Generate Salesforce Opportunity Next Steps: Daily agent finds open Salesforce opportunities missing a next step, generates an action plan with Gemini, posts it to Slack. ## Specification - What it does: You get daily Slack notifications with actionable plans for any open Salesforce deals missing a next step. This agent analyzes your deal details using Google Gemini to suggest specific actions and automatically updates those records in Salesforce. - Trigger: On a schedule (Scheduled ยท daily 10:00 AM) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - Salesforce: Fetch and update opportunity records - Google Gemini Chat Model: Generate next step recommendations - Slack: Post AI generated recommendations ## Known pitfalls, handle each one explicitly in your implementation 1. The LLM might generate overly verbose text that exceeds Salesforce field character limits so truncate the response before saving it. 2. Salesforce API governor limits may be hit if many opportunities are processed at once so batch the updates using Database.update with false for allOrNone. 3. Slack posting can fail if the channel ID is invalid or permissions change so verify the integration user has access to the target channel. ## Reference implementation https://n8n.io/workflows/16714 (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/generate-salesforce-opportunity-next-steps/ via usecasesforagents.com