Automate DocuSign tasks via Rube MCP (Composio): templates, envelopes, signatures, document management. Always search tools first for current schemas.
Add this skill
npx mdskills install sickn33/docusign-automationComprehensive DocuSign workflow automation with clear tool sequences and excellent pitfall documentation
1---2name: docusign-automation3description: "Automate DocuSign tasks via Rube MCP (Composio): templates, envelopes, signatures, document management. Always search tools first for current schemas."4requires:5 mcp: [rube]6---78# DocuSign Automation via Rube MCP910Automate DocuSign e-signature workflows through Composio's DocuSign toolkit via Rube MCP.1112## Prerequisites1314- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)15- Active DocuSign connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `docusign`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 `docusign`253. If connection is not ACTIVE, follow the returned auth link to complete DocuSign OAuth264. Confirm connection status shows ACTIVE before running any workflows2728## Core Workflows2930### 1. Browse and Select Templates3132**When to use**: User wants to find available document templates for sending3334**Tool sequence**:351. `DOCUSIGN_LIST_ALL_TEMPLATES` - List all available templates [Required]362. `DOCUSIGN_GET_TEMPLATE` - Get detailed template information [Optional]3738**Key parameters**:39- For listing: Optional search/filter parameters40- For details: `templateId` (from list results)41- Response includes template `templateId`, `name`, `description`, roles, and fields4243**Pitfalls**:44- Template IDs are GUIDs (e.g., '12345678-abcd-1234-efgh-123456789012')45- Templates define recipient roles with signing tabs; understand roles before creating envelopes46- Large template libraries require pagination; check for continuation tokens47- Template access depends on account permissions4849### 2. Create and Send Envelopes from Templates5051**When to use**: User wants to send documents for signature using a pre-built template5253**Tool sequence**:541. `DOCUSIGN_LIST_ALL_TEMPLATES` - Find the template to use [Prerequisite]552. `DOCUSIGN_GET_TEMPLATE` - Review template roles and fields [Optional]563. `DOCUSIGN_CREATE_ENVELOPE_FROM_TEMPLATE` - Create the envelope [Required]574. `DOCUSIGN_SEND_ENVELOPE` - Send the envelope for signing [Required]5859**Key parameters**:60- For CREATE_ENVELOPE_FROM_TEMPLATE:61 - `templateId`: Template to use62 - `templateRoles`: Array of role assignments with `roleName`, `name`, `email`63 - `status`: 'created' (draft) or 'sent' (send immediately)64 - `emailSubject`: Custom subject line for the signing email65 - `emailBlurb`: Custom message in the signing email66- For SEND_ENVELOPE:67 - `envelopeId`: Envelope ID from creation response6869**Pitfalls**:70- `templateRoles` must match the role names defined in the template exactly (case-sensitive)71- Setting `status` to 'sent' during creation sends immediately; use 'created' for drafts72- If status is 'sent' at creation, no need to call SEND_ENVELOPE separately73- Each role requires at minimum `roleName`, `name`, and `email`74- `emailSubject` overrides the template's default email subject7576### 3. Monitor Envelope Status7778**When to use**: User wants to check the status of sent envelopes or track signing progress7980**Tool sequence**:811. `DOCUSIGN_GET_ENVELOPE` - Get envelope details and status [Required]8283**Key parameters**:84- `envelopeId`: Envelope identifier (GUID)85- Response includes `status`, `recipients`, `sentDateTime`, `completedDateTime`8687**Pitfalls**:88- Envelope statuses: 'created', 'sent', 'delivered', 'signed', 'completed', 'declined', 'voided'89- 'delivered' means the email was opened, not that the document was signed90- 'completed' means all recipients have signed91- Recipients array shows individual signing status per recipient92- Envelope IDs are GUIDs; always resolve from creation or search results9394### 4. Add Templates to Existing Envelopes9596**When to use**: User wants to add additional documents or templates to an existing envelope9798**Tool sequence**:991. `DOCUSIGN_GET_ENVELOPE` - Verify envelope exists and is in draft state [Prerequisite]1002. `DOCUSIGN_ADD_TEMPLATES_TO_DOCUMENT_IN_ENVELOPE` - Add template to envelope [Required]101102**Key parameters**:103- `envelopeId`: Target envelope ID104- `documentId`: Document ID within the envelope105- `templateId`: Template to add106107**Pitfalls**:108- Envelope must be in 'created' (draft) status to add templates109- Cannot add templates to already-sent envelopes110- Document IDs are sequential within an envelope (starting from '1')111- Adding a template merges its fields and roles into the existing envelope112113### 5. Manage Envelope Lifecycle114115**When to use**: User wants to send, void, or manage draft envelopes116117**Tool sequence**:1181. `DOCUSIGN_GET_ENVELOPE` - Check current envelope status [Prerequisite]1192. `DOCUSIGN_SEND_ENVELOPE` - Send a draft envelope [Optional]120121**Key parameters**:122- `envelopeId`: Envelope to manage123- For sending: envelope must be in 'created' status with all required recipients124125**Pitfalls**:126- Only 'created' (draft) envelopes can be sent127- Sent envelopes cannot be unsent; they can only be voided128- Voiding an envelope notifies all recipients129- All required recipients must have valid email addresses before sending130131## Common Patterns132133### ID Resolution134135**Template name -> Template ID**:136```1371. Call DOCUSIGN_LIST_ALL_TEMPLATES1382. Find template by name in results1393. Extract templateId (GUID format)140```141142**Envelope tracking**:143```1441. Store envelopeId from CREATE_ENVELOPE_FROM_TEMPLATE response1452. Call DOCUSIGN_GET_ENVELOPE periodically to check status1463. Check recipient-level status for individual signing progress147```148149### Template Role Mapping150151When creating an envelope from a template:152```1531. Call DOCUSIGN_GET_TEMPLATE to see defined roles1542. Map each role to actual recipients:155 {156 "roleName": "Signer 1", // Must match template role name exactly157 "name": "John Smith",158 "email": "john@example.com"159 }1603. Include ALL required roles in templateRoles array161```162163### Envelope Status Flow164165```166created (draft) -> sent -> delivered -> signed -> completed167 \-> declined168 \-> voided (by sender)169```170171## Known Pitfalls172173**Template Roles**:174- Role names are case-sensitive; must match template definition exactly175- All required roles must be assigned when creating an envelope176- Missing role assignments cause envelope creation to fail177178**Envelope Status**:179- 'delivered' means email opened, NOT document signed180- 'completed' is the final successful state (all parties signed)181- Status transitions are one-way; cannot revert to previous states182183**GUIDs**:184- All DocuSign IDs (templates, envelopes) are GUID format185- Always resolve names to GUIDs via list/search endpoints186- Do not hardcode GUIDs; they are unique per account187188**Rate Limits**:189- DocuSign API has per-account rate limits190- Bulk envelope creation should be throttled191- Polling envelope status should use reasonable intervals (30-60 seconds)192193**Response Parsing**:194- Response data may be nested under `data` key195- Recipient information is nested within envelope response196- Date fields use ISO 8601 format197- Parse defensively with fallbacks for optional fields198199## Quick Reference200201| Task | Tool Slug | Key Params |202|------|-----------|------------|203| List templates | DOCUSIGN_LIST_ALL_TEMPLATES | (optional filters) |204| Get template | DOCUSIGN_GET_TEMPLATE | templateId |205| Create envelope | DOCUSIGN_CREATE_ENVELOPE_FROM_TEMPLATE | templateId, templateRoles, status |206| Send envelope | DOCUSIGN_SEND_ENVELOPE | envelopeId |207| Get envelope status | DOCUSIGN_GET_ENVELOPE | envelopeId |208| Add template to envelope | DOCUSIGN_ADD_TEMPLATES_TO_DOCUMENT_IN_ENVELOPE | envelopeId, documentId, templateId |209
Full transparency — inspect the skill content before installing.