[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-afb3773e-5a85-46ef-9ba9-86cfacd4a823":3,"$fxLHga5HudU4yiOPFzUEbFb2I98QGHRgeEX1kwjsBl0E":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"afb3773e-5a85-46ef-9ba9-86cfacd4a823","salesforce-automation","通过Rube MCP（Composio）自动化Salesforce任务：潜在客户、联系人、账户、机会、SOQL查询。始终首先使用搜索工具查找当前架构。","cat_prod_automation","mod_productivity","sickn33,productivity","---\nname: salesforce-automation\ndescription: \"Automate Salesforce tasks via Rube MCP (Composio): leads, contacts, accounts, opportunities, SOQL queries. Always search tools first for current schemas.\"\nrisk: critical\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# Salesforce Automation via Rube MCP\n\nAutomate Salesforce CRM operations through Composio's Salesforce toolkit via Rube MCP.\n\n## Prerequisites\n\n- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)\n- Active Salesforce connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `salesforce`\n- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas\n\n## Setup\n\n**Get Rube MCP**: Add `https:\u002F\u002Frube.app\u002Fmcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.\n\n\n1. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds\n2. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `salesforce`\n3. If connection is not ACTIVE, follow the returned auth link to complete Salesforce OAuth\n4. Confirm connection status shows ACTIVE before running any workflows\n\n## Core Workflows\n\n### 1. Manage Leads\n\n**When to use**: User wants to create, search, update, or list leads\n\n**Tool sequence**:\n1. `SALESFORCE_SEARCH_LEADS` - Search leads by criteria [Optional]\n2. `SALESFORCE_LIST_LEADS` - List all leads [Optional]\n3. `SALESFORCE_CREATE_LEAD` - Create a new lead [Optional]\n4. `SALESFORCE_UPDATE_LEAD` - Update lead fields [Optional]\n5. `SALESFORCE_ADD_LEAD_TO_CAMPAIGN` - Add lead to campaign [Optional]\n6. `SALESFORCE_APPLY_LEAD_ASSIGNMENT_RULES` - Apply assignment rules [Optional]\n\n**Key parameters**:\n- `LastName`: Required for lead creation\n- `Company`: Required for lead creation\n- `Email`, `Phone`, `Title`: Common lead fields\n- `lead_id`: Lead ID for updates\n- `campaign_id`: Campaign ID for campaign operations\n\n**Pitfalls**:\n- LastName and Company are required fields for lead creation\n- Lead IDs are 15 or 18 character Salesforce IDs\n\n### 2. Manage Contacts and Accounts\n\n**When to use**: User wants to manage contacts and their associated accounts\n\n**Tool sequence**:\n1. `SALESFORCE_SEARCH_CONTACTS` - Search contacts [Optional]\n2. `SALESFORCE_LIST_CONTACTS` - List contacts [Optional]\n3. `SALESFORCE_CREATE_CONTACT` - Create a new contact [Optional]\n4. `SALESFORCE_SEARCH_ACCOUNTS` - Search accounts [Optional]\n5. `SALESFORCE_CREATE_ACCOUNT` - Create a new account [Optional]\n6. `SALESFORCE_ASSOCIATE_CONTACT_TO_ACCOUNT` - Link contact to account [Optional]\n\n**Key parameters**:\n- `LastName`: Required for contact creation\n- `Name`: Account name for creation\n- `AccountId`: Account ID to associate with contact\n- `contact_id`, `account_id`: IDs for association\n\n**Pitfalls**:\n- Contact requires at least LastName\n- Account association requires both valid contact and account IDs\n\n### 3. Manage Opportunities\n\n**When to use**: User wants to track and manage sales opportunities\n\n**Tool sequence**:\n1. `SALESFORCE_SEARCH_OPPORTUNITIES` - Search opportunities [Optional]\n2. `SALESFORCE_LIST_OPPORTUNITIES` - List all opportunities [Optional]\n3. `SALESFORCE_GET_OPPORTUNITY` - Get opportunity details [Optional]\n4. `SALESFORCE_CREATE_OPPORTUNITY` - Create new opportunity [Optional]\n5. `SALESFORCE_RETRIEVE_OPPORTUNITIES_DATA` - Retrieve opportunity data [Optional]\n\n**Key parameters**:\n- `Name`: Opportunity name (required)\n- `StageName`: Sales stage (required)\n- `CloseDate`: Expected close date (required)\n- `Amount`: Deal value\n- `AccountId`: Associated account\n\n**Pitfalls**:\n- Name, StageName, and CloseDate are required for creation\n- Stage names must match exactly what is configured in Salesforce\n\n### 4. Run SOQL Queries\n\n**When to use**: User wants to query Salesforce data with custom SOQL\n\n**Tool sequence**:\n1. `SALESFORCE_RUN_SOQL_QUERY` \u002F `SALESFORCE_QUERY` - Execute SOQL [Required]\n\n**Key parameters**:\n- `query`: SOQL query string\n\n**Pitfalls**:\n- SOQL syntax differs from SQL; uses Salesforce object and field API names\n- Field API names may differ from display labels (e.g., `Account.Name` not `Account Name`)\n- Results are paginated for large datasets\n\n### 5. Manage Tasks\n\n**When to use**: User wants to create, search, update, or complete tasks\n\n**Tool sequence**:\n1. `SALESFORCE_SEARCH_TASKS` - Search tasks [Optional]\n2. `SALESFORCE_UPDATE_TASK` - Update task fields [Optional]\n3. `SALESFORCE_COMPLETE_TASK` - Mark task as complete [Optional]\n\n**Key parameters**:\n- `task_id`: Task ID for updates\n- `Status`: Task status value\n- `Subject`: Task subject\n\n**Pitfalls**:\n- Task status values must match picklist options in Salesforce\n\n## Common Patterns\n\n### SOQL Syntax\n\n**Basic query**:\n```\nSELECT Id, Name, Email FROM Contact WHERE LastName = 'Smith'\n```\n\n**With relationships**:\n```\nSELECT Id, Name, Account.Name FROM Contact WHERE Account.Industry = 'Technology'\n```\n\n**Date filtering**:\n```\nSELECT Id, Name FROM Lead WHERE CreatedDate = TODAY\nSELECT Id, Name FROM Opportunity WHERE CloseDate = NEXT_MONTH\n```\n\n### Pagination\n\n- SOQL queries with large results return pagination tokens\n- Use `SALESFORCE_QUERY` with nextRecordsUrl for pagination\n- Check `done` field in response; if false, continue paging\n\n## Known Pitfalls\n\n**Field API Names**:\n- Always use API names, not display labels\n- Custom fields end with `__c` suffix\n- Use SALESFORCE_GET_ALL_CUSTOM_OBJECTS to discover custom objects\n\n**ID Formats**:\n- Salesforce IDs are 15 (case-sensitive) or 18 (case-insensitive) characters\n- Both formats are accepted in most operations\n\n## Quick Reference\n\n| Task | Tool Slug | Key Params |\n|------|-----------|------------|\n| Create lead | SALESFORCE_CREATE_LEAD | LastName, Company |\n| Search leads | SALESFORCE_SEARCH_LEADS | query |\n| List leads | SALESFORCE_LIST_LEADS | (filters) |\n| Update lead | SALESFORCE_UPDATE_LEAD | lead_id, fields |\n| Create contact | SALESFORCE_CREATE_CONTACT | LastName |\n| Search contacts | SALESFORCE_SEARCH_CONTACTS | query |\n| Create account | SALESFORCE_CREATE_ACCOUNT | Name |\n| Search accounts | SALESFORCE_SEARCH_ACCOUNTS | query |\n| Link contact | SALESFORCE_ASSOCIATE_CONTACT_TO_ACCOUNT | contact_id, account_id |\n| Create opportunity | SALESFORCE_CREATE_OPPORTUNITY | Name, StageName, CloseDate |\n| Get opportunity | SALESFORCE_GET_OPPORTUNITY | opportunity_id |\n| Search opportunities | SALESFORCE_SEARCH_OPPORTUNITIES | query |\n| Run SOQL | SALESFORCE_RUN_SOQL_QUERY | query |\n| Query | SALESFORCE_QUERY | query |\n| Search tasks | SALESFORCE_SEARCH_TASKS | query |\n| Update task | SALESFORCE_UPDATE_TASK | task_id, fields |\n| Complete task | SALESFORCE_COMPLETE_TASK | task_id |\n| Get user info | SALESFORCE_GET_USER_INFO | (none) |\n| Custom objects | SALESFORCE_GET_ALL_CUSTOM_OBJECTS | (none) |\n| Create record | SALESFORCE_CREATE_A_RECORD | object_type, fields |\n| Transfer ownership | SALESFORCE_MASS_TRANSFER_OWNERSHIP | records, new_owner |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,223,796,"2026-05-16 13:37:37",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"效率工具","productivity","mdi-lightning-bolt-outline","文档处理、数据分析、自动化工作流",4,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"自动化","automation","mdi-robot-outline","工作流自动化、批处理",3,101,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"a637366f-ec32-42e4-8562-ae22e07906fc","1.0.0","salesforce-automation.zip",2773,"uploads\u002Fskills\u002Fafb3773e-5a85-46ef-9ba9-86cfacd4a823\u002Fsalesforce-automation.zip","9aa635c57b2c36a97790968e9de5f44ee815a8e04cd9cf93c4c821d139b2bf26","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":7273}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]