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.
Add this skill
npx mdskills install sickn33/close-automationClear Close CRM workflows with strong ID handling patterns and pitfall documentation
1---2name: close-automation3description: "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."4requires:5 mcp: [rube]6---78# Close CRM Automation via Rube MCP910Automate Close CRM operations through Composio's Close toolkit via Rube MCP.1112## Prerequisites1314- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)15- Active Close connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `close`16- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas1718## Setup1920**Get Rube MCP**: Add `https://rube.app/mcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.2122231. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds242. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `close`253. If connection is not ACTIVE, follow the returned auth link to complete Close API authentication264. Confirm connection status shows ACTIVE before running any workflows2728## Core Workflows2930### 1. Create and Manage Leads3132**When to use**: User wants to create new leads or manage existing lead records3334**Tool sequence**:351. `CLOSE_CREATE_LEAD` - Create a new lead in Close [Required]3637**Key parameters**:38- `name`: Lead/company name39- `contacts`: Array of contact objects associated with the lead40- `custom`: Custom field values as key-value pairs41- `status_id`: Lead status ID4243**Pitfalls**:44- Leads in Close represent companies/organizations, not individual people45- Contacts are nested within leads; create the lead first, then contacts are included46- Custom field keys use the custom field ID (e.g., 'custom.cf_XXX'), not display names47- Duplicate lead detection is not automatic; check before creating4849### 2. Log Calls5051**When to use**: User wants to log a phone call activity against a lead5253**Tool sequence**:541. `CLOSE_CREATE_CALL` - Log a call activity [Required]5556**Key parameters**:57- `lead_id`: ID of the associated lead58- `contact_id`: ID of the contact called59- `direction`: 'outbound' or 'inbound'60- `status`: Call status ('completed', 'no-answer', 'busy', etc.)61- `duration`: Call duration in seconds62- `note`: Call notes6364**Pitfalls**:65- lead_id is required; calls must be associated with a lead66- Duration is in seconds, not minutes67- Call direction affects reporting and analytics68- contact_id is optional but recommended for tracking6970### 3. Send SMS Messages7172**When to use**: User wants to send or log SMS messages through Close7374**Tool sequence**:751. `CLOSE_CREATE_SMS` - Send or log an SMS message [Required]7677**Key parameters**:78- `lead_id`: ID of the associated lead79- `contact_id`: ID of the contact80- `direction`: 'outbound' or 'inbound'81- `text`: SMS message content82- `status`: Message status8384**Pitfalls**:85- SMS functionality requires Close phone/SMS integration to be configured86- lead_id is required for all SMS activities87- Outbound SMS may require a verified sending number88- Message length limits may apply depending on carrier8990### 4. Manage Tasks9192**When to use**: User wants to create or manage follow-up tasks9394**Tool sequence**:951. `CLOSE_CREATE_TASK` - Create a new task [Required]9697**Key parameters**:98- `lead_id`: Associated lead ID99- `text`: Task description100- `date`: Due date for the task101- `assigned_to`: User ID of the assignee102- `is_complete`: Whether the task is completed103104**Pitfalls**:105- Tasks are associated with leads, not contacts106- Date format should follow ISO 8601107- assigned_to requires the Close user ID, not email or name108- Tasks without a date appear in the 'no due date' section109110### 5. Manage Notes111112**When to use**: User wants to add or retrieve notes on leads113114**Tool sequence**:1151. `CLOSE_GET_NOTE` - Retrieve a specific note [Required]116117**Key parameters**:118- `note_id`: ID of the note to retrieve119120**Pitfalls**:121- Notes are associated with leads122- Note IDs are required for retrieval; search leads first to find note references123- Notes support plain text and basic formatting124125### 6. Delete Activities126127**When to use**: User wants to remove call records or other activities128129**Tool sequence**:1301. `CLOSE_DELETE_CALL` - Delete a call activity [Required]131132**Key parameters**:133- `call_id`: ID of the call to delete134135**Pitfalls**:136- Deletion is permanent and cannot be undone137- Only the call creator or admin can delete calls138- Deleting a call removes it from all reports and timelines139140## Common Patterns141142### Lead and Contact Relationship143144```145Close data model:146- Lead = Company/Organization147 - Contact = Person (nested within Lead)148 - Activity = Call, SMS, Email, Note (linked to Lead)149 - Task = Follow-up item (linked to Lead)150 - Opportunity = Deal (linked to Lead)151```152153### ID Resolution154155**Lead ID**:156```1571. Search for leads using the Close search API1582. Extract lead_id from results (format: 'lead_XXXXXXXXXXXXX')1593. Use lead_id in all activity creation calls160```161162**Contact ID**:163```1641. Retrieve lead details to get nested contacts1652. Extract contact_id (format: 'cont_XXXXXXXXXXXXX')1663. Use in call/SMS activities for accurate tracking167```168169### Activity Logging Pattern170171```1721. Identify the lead_id and optionally contact_id1732. Create the activity (call, SMS, note) with lead_id1743. Include relevant metadata (duration, direction, status)1754. Create follow-up tasks if needed176```177178## Known Pitfalls179180**ID Formats**:181- Lead IDs: 'lead_XXXXXXXXXXXXX'182- Contact IDs: 'cont_XXXXXXXXXXXXX'183- Activity IDs vary by type: 'acti_XXXXXXXXXXXXX', 'call_XXXXXXXXXXXXX'184- Custom field IDs: 'custom.cf_XXXXXXXXXXXXX'185- Always use the full ID string186187**Rate Limits**:188- Close API has rate limits based on your plan189- Implement delays between bulk operations190- Monitor response headers for rate limit status191- 429 responses require backoff192193**Custom Fields**:194- Custom fields are referenced by their API ID, not display name195- Different lead statuses may have different required custom fields196- Custom field types (text, number, date, dropdown) enforce value formats197198**Data Integrity**:199- Leads are the primary entity; contacts and activities are linked to leads200- Deleting a lead may cascade to its contacts and activities201- Bulk operations should validate IDs before executing202203## Quick Reference204205| Task | Tool Slug | Key Params |206|------|-----------|------------|207| Create lead | CLOSE_CREATE_LEAD | name, contacts, custom |208| Log call | CLOSE_CREATE_CALL | lead_id, direction, status, duration |209| Send SMS | CLOSE_CREATE_SMS | lead_id, text, direction |210| Create task | CLOSE_CREATE_TASK | lead_id, text, date, assigned_to |211| Get note | CLOSE_GET_NOTE | note_id |212| Delete call | CLOSE_DELETE_CALL | call_id |213
Full transparency — inspect the skill content before installing.