docusign-automation
通过Rube MCP(Composio)自动化DocuSign任务:模板管理、信封处理、电子签名及文档管理。始终优先搜索工具以获取最新架构信息。
DocuSign Automation via Rube MCP
Automate DocuSign e-signature workflows through Composio's DocuSign toolkit via Rube MCP.
Prerequisites
RUBE_MANAGE_CONNECTIONS with toolkit docusignRUBE_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 docusignCore Workflows
1. Browse and Select Templates
When to use: User wants to find available document templates for sending
Tool sequence:
DOCUSIGN_LIST_ALL_TEMPLATES - List all available templates [Required]DOCUSIGN_GET_TEMPLATE - Get detailed template information [Optional]Key parameters:
templateId (from list results)templateId, name, description, roles, and fieldsPitfalls:
2. Create and Send Envelopes from Templates
When to use: User wants to send documents for signature using a pre-built template
Tool sequence:
DOCUSIGN_LIST_ALL_TEMPLATES - Find the template to use [Prerequisite]DOCUSIGN_GET_TEMPLATE - Review template roles and fields [Optional]DOCUSIGN_CREATE_ENVELOPE_FROM_TEMPLATE - Create the envelope [Required]DOCUSIGN_SEND_ENVELOPE - Send the envelope for signing [Required]Key parameters:
-
templateId: Template to use-
templateRoles: Array of role assignments with roleName, name, email-
status: 'created' (draft) or 'sent' (send immediately)-
emailSubject: Custom subject line for the signing email-
emailBlurb: Custom message in the signing email-
envelopeId: Envelope ID from creation responsePitfalls:
templateRoles must match the role names defined in the template exactly (case-sensitive)status to 'sent' during creation sends immediately; use 'created' for draftsroleName, name, and emailemailSubject overrides the template's default email subject3. Monitor Envelope Status
When to use: User wants to check the status of sent envelopes or track signing progress
Tool sequence:
DOCUSIGN_GET_ENVELOPE - Get envelope details and status [Required]Key parameters:
envelopeId: Envelope identifier (GUID)status, recipients, sentDateTime, completedDateTimePitfalls:
4. Add Templates to Existing Envelopes
When to use: User wants to add additional documents or templates to an existing envelope
Tool sequence:
DOCUSIGN_GET_ENVELOPE - Verify envelope exists and is in draft state [Prerequisite]DOCUSIGN_ADD_TEMPLATES_TO_DOCUMENT_IN_ENVELOPE - Add template to envelope [Required]Key parameters:
envelopeId: Target envelope IDdocumentId: Document ID within the envelopetemplateId: Template to addPitfalls:
5. Manage Envelope Lifecycle
When to use: User wants to send, void, or manage draft envelopes
Tool sequence:
DOCUSIGN_GET_ENVELOPE - Check current envelope status [Prerequisite]DOCUSIGN_SEND_ENVELOPE - Send a draft envelope [Optional]Key parameters:
envelopeId: Envelope to managePitfalls:
Common Patterns
ID Resolution
Template name -> Template ID:
1. Call DOCUSIGN_LIST_ALL_TEMPLATES
Find template by name in results
Extract templateId (GUID format) Envelope tracking:
1. Store envelopeId from CREATE_ENVELOPE_FROM_TEMPLATE response
Call DOCUSIGN_GET_ENVELOPE periodically to check status
Check recipient-level status for individual signing progress Template Role Mapping
When creating an envelope from a template:
1. Call DOCUSIGN_GET_TEMPLATE to see defined roles
Map each role to actual recipients:
{
"roleName": "Signer 1", // Must match template role name exactly
"name": "John Smith",
"email": "john@example.com"
}
Include ALL required roles in templateRoles array Envelope Status Flow
created (draft) -> sent -> delivered -> signed -> completed
\-> declined
\-> voided (by sender)Known Pitfalls
Template Roles:
Envelope Status:
GUIDs:
Rate Limits:
Response Parsing:
data keyQuick Reference
| Task | Tool Slug | Key Params |
|---|---|---|
| List templates | DOCUSIGN_LIST_ALL_TEMPLATES | (optional filters) |
| Get template | DOCUSIGN_GET_TEMPLATE | templateId |
| Create envelope | DOCUSIGN_CREATE_ENVELOPE_FROM_TEMPLATE | templateId, templateRoles, status |
| Send envelope | DOCUSIGN_SEND_ENVELOPE | envelopeId |
| Get envelope status | DOCUSIGN_GET_ENVELOPE | envelopeId |
| Add template to envelope | DOCUSIGN_ADD_TEMPLATES_TO_DOCUMENT_IN_ENVELOPE | envelopeId, documentId, templateId |