{"slug":"close-automation","title":"close-automation","summary":"Automate Close CRM tasks via Rube MCP (Composio): create leads, manage calls/SMS, handle tasks, and track notes. Always search tools first for current schemas.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-09-14T20:43:28.381803Z","repo":{"url":"https://github.com/davepoon/buildwithclaude","stars":3556,"forks":535,"license":"MIT","updatedAt":"2026-09-27T03:56:38Z"},"bodyHtml":"<hr>\n<h2>name: close-automation\ndescription: \"Automate Close CRM tasks via Rube MCP (Composio): create leads, manage calls/SMS, handle tasks, and track notes. Always search tools first for current schemas.\"\nrequires:\nmcp: [rube]\ncategory: crm</h2>\n<h1>Close CRM Automation via Rube MCP</h1>\n<p>Automate Close CRM operations through Composio's Close toolkit via Rube MCP.</p>\n<p><strong>Toolkit docs</strong>: <a href=\"https://composio.dev/toolkits/close\">composio.dev/toolkits/close</a></p>\n<h2>Prerequisites</h2>\n<ul>\n<li>Rube MCP must be connected (RUBE_SEARCH_TOOLS available)</li>\n<li>Active Close connection via <code>RUBE_MANAGE_CONNECTIONS</code> with toolkit <code>close</code></li>\n<li>Always call <code>RUBE_SEARCH_TOOLS</code> first to get current tool schemas</li>\n</ul>\n<h2>Setup</h2>\n<p><strong>Get Rube MCP</strong>: Add <code>https://rube.app/mcp</code> as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.</p>\n<ol>\n<li>Verify Rube MCP is available by confirming <code>RUBE_SEARCH_TOOLS</code> responds</li>\n<li>Call <code>RUBE_MANAGE_CONNECTIONS</code> with toolkit <code>close</code></li>\n<li>If connection is not ACTIVE, follow the returned auth link to complete Close API authentication</li>\n<li>Confirm connection status shows ACTIVE before running any workflows</li>\n</ol>\n<h2>Core Workflows</h2>\n<h3>1. Create and Manage Leads</h3>\n<p><strong>When to use</strong>: User wants to create new leads or manage existing lead records</p>\n<p><strong>Tool sequence</strong>:</p>\n<ol>\n<li><code>CLOSE_CREATE_LEAD</code> - Create a new lead in Close [Required]</li>\n</ol>\n<p><strong>Key parameters</strong>:</p>\n<ul>\n<li><code>name</code>: Lead/company name</li>\n<li><code>contacts</code>: Array of contact objects associated with the lead</li>\n<li><code>custom</code>: Custom field values as key-value pairs</li>\n<li><code>status_id</code>: Lead status ID</li>\n</ul>\n<p><strong>Pitfalls</strong>:</p>\n<ul>\n<li>Leads in Close represent companies/organizations, not individual people</li>\n<li>Contacts are nested within leads; create the lead first, then contacts are included</li>\n<li>Custom field keys use the custom field ID (e.g., 'custom.cf_XXX'), not display names</li>\n<li>Duplicate lead detection is not automatic; check before creating</li>\n</ul>\n<h3>2. Log Calls</h3>\n<p><strong>When to use</strong>: User wants to log a phone call activity against a lead</p>\n<p><strong>Tool sequence</strong>:</p>\n<ol>\n<li><code>CLOSE_CREATE_CALL</code> - Log a call activity [Required]</li>\n</ol>\n<p><strong>Key parameters</strong>:</p>\n<ul>\n<li><code>lead_id</code>: ID of the associated lead</li>\n<li><code>contact_id</code>: ID of the contact called</li>\n<li><code>direction</code>: 'outbound' or 'inbound'</li>\n<li><code>status</code>: Call status ('completed', 'no-answer', 'busy', etc.)</li>\n<li><code>duration</code>: Call duration in seconds</li>\n<li><code>note</code>: Call notes</li>\n</ul>\n<p><strong>Pitfalls</strong>:</p>\n<ul>\n<li>lead_id is required; calls must be associated with a lead</li>\n<li>Duration is in seconds, not minutes</li>\n<li>Call direction affects reporting and analytics</li>\n<li>contact_id is optional but recommended for tracking</li>\n</ul>\n<h3>3. Send SMS Messages</h3>\n<p><strong>When to use</strong>: User wants to send or log SMS messages through Close</p>\n<p><strong>Tool sequence</strong>:</p>\n<ol>\n<li><code>CLOSE_CREATE_SMS</code> - Send or log an SMS message [Required]</li>\n</ol>\n<p><strong>Key parameters</strong>:</p>\n<ul>\n<li><code>lead_id</code>: ID of the associated lead</li>\n<li><code>contact_id</code>: ID of the contact</li>\n<li><code>direction</code>: 'outbound' or 'inbound'</li>\n<li><code>text</code>: SMS message content</li>\n<li><code>status</code>: Message status</li>\n</ul>\n<p><strong>Pitfalls</strong>:</p>\n<ul>\n<li>SMS functionality requires Close phone/SMS integration to be configured</li>\n<li>lead_id is required for all SMS activities</li>\n<li>Outbound SMS may require a verified sending number</li>\n<li>Message length limits may apply depending on carrier</li>\n</ul>\n<h3>4. Manage Tasks</h3>\n<p><strong>When to use</strong>: User wants to create or manage follow-up tasks</p>\n<p><strong>Tool sequence</strong>:</p>\n<ol>\n<li><code>CLOSE_CREATE_TASK</code> - Create a new task [Required]</li>\n</ol>\n<p><strong>Key parameters</strong>:</p>\n<ul>\n<li><code>lead_id</code>: Associated lead ID</li>\n<li><code>text</code>: Task description</li>\n<li><code>date</code>: Due date for the task</li>\n<li><code>assigned_to</code>: User ID of the assignee</li>\n<li><code>is_complete</code>: Whether the task is completed</li>\n</ul>\n<p><strong>Pitfalls</strong>:</p>\n<ul>\n<li>Tasks are associated with leads, not contacts</li>\n<li>Date format should follow ISO 8601</li>\n<li>assigned_to requires the Close user ID, not email or name</li>\n<li>Tasks without a date appear in the 'no due date' section</li>\n</ul>\n<h3>5. Manage Notes</h3>\n<p><strong>When to use</strong>: User wants to add or retrieve notes on leads</p>\n<p><strong>Tool sequence</strong>:</p>\n<ol>\n<li><code>CLOSE_GET_NOTE</code> - Retrieve a specific note [Required]</li>\n</ol>\n<p><strong>Key parameters</strong>:</p>\n<ul>\n<li><code>note_id</code>: ID of the note to retrieve</li>\n</ul>\n<p><strong>Pitfalls</strong>:</p>\n<ul>\n<li>Notes are associated with leads</li>\n<li>Note IDs are required for retrieval; search leads first to find note references</li>\n<li>Notes support plain text and basic formatting</li>\n</ul>\n<h3>6. Delete Activities</h3>\n<p><strong>When to use</strong>: User wants to remove call records or other activities</p>\n<p><strong>Tool sequence</strong>:</p>\n<ol>\n<li><code>CLOSE_DELETE_CALL</code> - Delete a call activity [Required]</li>\n</ol>\n<p><strong>Key parameters</strong>:</p>\n<ul>\n<li><code>call_id</code>: ID of the call to delete</li>\n</ul>\n<p><strong>Pitfalls</strong>:</p>\n<ul>\n<li>Deletion is permanent and cannot be undone</li>\n<li>Only the call creator or admin can delete calls</li>\n<li>Deleting a call removes it from all reports and timelines</li>\n</ul>\n<h2>Common Patterns</h2>\n<h3>Lead and Contact Relationship</h3>\n<pre><code>Close data model:\n- Lead = Company/Organization\n  - Contact = Person (nested within Lead)\n  - Activity = Call, SMS, Email, Note (linked to Lead)\n  - Task = Follow-up item (linked to Lead)\n  - Opportunity = Deal (linked to Lead)\n</code></pre>\n<h3>ID Resolution</h3>\n<p><strong>Lead ID</strong>:</p>\n<pre><code>1. Search for leads using the Close search API\n2. Extract lead_id from results (format: 'lead_XXXXXXXXXXXXX')\n3. Use lead_id in all activity creation calls\n</code></pre>\n<p><strong>Contact ID</strong>:</p>\n<pre><code>1. Retrieve lead details to get nested contacts\n2. Extract contact_id (format: 'cont_XXXXXXXXXXXXX')\n3. Use in call/SMS activities for accurate tracking\n</code></pre>\n<h3>Activity Logging Pattern</h3>\n<pre><code>1. Identify the lead_id and optionally contact_id\n2. Create the activity (call, SMS, note) with lead_id\n3. Include relevant metadata (duration, direction, status)\n4. Create follow-up tasks if needed\n</code></pre>\n<h2>Known Pitfalls</h2>\n<p><strong>ID Formats</strong>:</p>\n<ul>\n<li>Lead IDs: 'lead_XXXXXXXXXXXXX'</li>\n<li>Contact IDs: 'cont_XXXXXXXXXXXXX'</li>\n<li>Activity IDs vary by type: 'acti_XXXXXXXXXXXXX', 'call_XXXXXXXXXXXXX'</li>\n<li>Custom field IDs: 'custom.cf_XXXXXXXXXXXXX'</li>\n<li>Always use the full ID string</li>\n</ul>\n<p><strong>Rate Limits</strong>:</p>\n<ul>\n<li>Close API has rate limits based on your plan</li>\n<li>Implement delays between bulk operations</li>\n<li>Monitor response headers for rate limit status</li>\n<li>429 responses require backoff</li>\n</ul>\n<p><strong>Custom Fields</strong>:</p>\n<ul>\n<li>Custom fields are referenced by their API ID, not display name</li>\n<li>Different lead statuses may have different required custom fields</li>\n<li>Custom field types (text, number, date, dropdown) enforce value formats</li>\n</ul>\n<p><strong>Data Integrity</strong>:</p>\n<ul>\n<li>Leads are the primary entity; contacts and activities are linked to leads</li>\n<li>Deleting a lead may cascade to its contacts and activities</li>\n<li>Bulk operations should validate IDs before executing</li>\n</ul>\n<h2>Quick Reference</h2>\n<table>\n<thead>\n<tr>\n<th>Task</th>\n<th>Tool Slug</th>\n<th>Key Params</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Create lead</td>\n<td>CLOSE_CREATE_LEAD</td>\n<td>name, contacts, custom</td>\n</tr>\n<tr>\n<td>Log call</td>\n<td>CLOSE_CREATE_CALL</td>\n<td>lead_id, direction, status, duration</td>\n</tr>\n<tr>\n<td>Send SMS</td>\n<td>CLOSE_CREATE_SMS</td>\n<td>lead_id, text, direction</td>\n</tr>\n<tr>\n<td>Create task</td>\n<td>CLOSE_CREATE_TASK</td>\n<td>lead_id, text, date, assigned_to</td>\n</tr>\n<tr>\n<td>Get note</td>\n<td>CLOSE_GET_NOTE</td>\n<td>note_id</td>\n</tr>\n<tr>\n<td>Delete call</td>\n<td>CLOSE_DELETE_CALL</td>\n<td>call_id</td>\n</tr>\n</tbody>\n</table>\n<hr>\n<p><em>Powered by <a href=\"https://composio.dev\">Composio</a></em></p>\n","files":[{"path":"SKILL.md","sizeBytes":6794,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-09-14T20:44:56.722215Z","sha256":"00460CE97E74890EFC79518C39795834BBC1E0B0FB75331BC5BE2609288A48A5","sizeBytes":2770},"review":null,"source":{"repositoryUrl":"https://github.com/davepoon/buildwithclaude","path":"plugins/all-skills/skills/close-automation","license":"MIT","commit":"6178ae2b0900b3600419853206de1dddf0f28311","subtreeSha":"73E68DEFBACDB95F4EC93E9B0A06310EA5A6F9825E1B14B0789FC36D76D05A03","lastSyncedAt":"2026-09-27T19:47:46.68834Z"},"reviewedAt":"2026-09-14T20:47:34.972868Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/davepoon/buildwithclaude/tree/main/plugins/all-skills/skills/close-automation"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install davepoon-buildwithclaude@llmmart"},{"target":"git","command":"git clone https://github.com/davepoon/buildwithclaude.git"}]}