close-automation
通过Rube MCP(Composio)自动化CRM任务:创建潜在客户、管理通话/短信、处理任务及跟踪备注。始终优先搜索工具以获取当前架构。
Close CRM Automation via Rube MCP
Automate Close CRM operations through Composio's Close toolkit via Rube MCP.
Prerequisites
RUBE_MANAGE_CONNECTIONS with toolkit closeRUBE_SEARCH_TOOLS first to get current tool schemasSetup
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.
RUBE_SEARCH_TOOLS respondsRUBE_MANAGE_CONNECTIONS with toolkit closeCore Workflows
1. Create and Manage Leads
When to use: User wants to create new leads or manage existing lead records
Tool sequence:
CLOSE_CREATE_LEAD - Create a new lead in Close [Required]Key parameters:
name: Lead/company namecontacts: Array of contact objects associated with the leadcustom: Custom field values as key-value pairsstatus_id: Lead status IDPitfalls:
2. Log Calls
When to use: User wants to log a phone call activity against a lead
Tool sequence:
CLOSE_CREATE_CALL - Log a call activity [Required]Key parameters:
lead_id: ID of the associated leadcontact_id: ID of the contact calleddirection: 'outbound' or 'inbound'status: Call status ('completed', 'no-answer', 'busy', etc.)duration: Call duration in secondsnote: Call notesPitfalls:
3. Send SMS Messages
When to use: User wants to send or log SMS messages through Close
Tool sequence:
CLOSE_CREATE_SMS - Send or log an SMS message [Required]Key parameters:
lead_id: ID of the associated leadcontact_id: ID of the contactdirection: 'outbound' or 'inbound'text: SMS message contentstatus: Message statusPitfalls:
4. Manage Tasks
When to use: User wants to create or manage follow-up tasks
Tool sequence:
CLOSE_CREATE_TASK - Create a new task [Required]Key parameters:
lead_id: Associated lead IDtext: Task descriptiondate: Due date for the taskassigned_to: User ID of the assigneeis_complete: Whether the task is completedPitfalls:
5. Manage Notes
When to use: User wants to add or retrieve notes on leads
Tool sequence:
CLOSE_GET_NOTE - Retrieve a specific note [Required]Key parameters:
note_id: ID of the note to retrievePitfalls:
6. Delete Activities
When to use: User wants to remove call records or other activities
Tool sequence:
CLOSE_DELETE_CALL - Delete a call activity [Required]Key parameters:
call_id: ID of the call to deletePitfalls:
Common Patterns
Lead and Contact Relationship
Close data model:
Lead = Company/Organization
- Contact = Person (nested within Lead)
- Activity = Call, SMS, Email, Note (linked to Lead)
- Task = Follow-up item (linked to Lead)
- Opportunity = Deal (linked to Lead)ID Resolution
Lead ID:
1. Search for leads using the Close search API
Extract lead_id from results (format: 'lead_XXXXXXXXXXXXX')
Use lead_id in all activity creation calls Contact ID:
1. Retrieve lead details to get nested contacts
Extract contact_id (format: 'cont_XXXXXXXXXXXXX')
Use in call/SMS activities for accurate tracking Activity Logging Pattern
1. Identify the lead_id and optionally contact_id
Create the activity (call, SMS, note) with lead_id
Include relevant metadata (duration, direction, status)
Create follow-up tasks if needed Known Pitfalls
ID Formats:
Rate Limits:
Custom Fields:
Data Integrity:
Quick Reference
| Task | Tool Slug | Key Params |
|---|---|---|
| Create lead | CLOSE_CREATE_LEAD | name, contacts, custom |
| Log call | CLOSE_CREATE_CALL | lead_id, direction, status, duration |
| Send SMS | CLOSE_CREATE_SMS | lead_id, text, direction |
| Create task | CLOSE_CREATE_TASK | lead_id, text, date, assigned_to |
| Get note | CLOSE_GET_NOTE | note_id |
| Delete call | CLOSE_DELETE_CALL | call_id |