-2chat-automation
npx machina-cli add skill ranbot-ai/awesome-skills/2chat-automation --openclaw2chat Automation via Rube MCP
Automate 2chat operations through Composio's 2chat toolkit via Rube MCP.
Toolkit docs: composio.dev/toolkits/_2chat
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active 2chat connection via
RUBE_MANAGE_CONNECTIONSwith toolkit_2chat - Always call
RUBE_SEARCH_TOOLSfirst to get current tool schemas
Setup
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.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLSresponds - Call
RUBE_MANAGE_CONNECTIONSwith toolkit_2chat - If connection is not ACTIVE, follow the returned auth link to complete setup
- Confirm connection status shows ACTIVE before running any workflows
Tool Discovery
Always discover available tools before executing workflows:
RUBE_SEARCH_TOOLS
queries: [{use_case: "2chat operations", known_fields: ""}]
session: {generate_id: true}
This returns available tool slugs, input schemas, recommended execution plans, and known pitfalls.
Core Workflow Pattern
Step 1: Discover Available Tools
RUBE_SEARCH_TOOLS
queries: [{use_case: "your specific 2chat task"}]
session: {id: "existing_session_id"}
Step 2: Check Connection
RUBE_MANAGE_CONNECTIONS
toolkits: ["_2chat"]
session_id: "your_session_id"
Step 3: Execute Tools
RUBE_MULTI_EXECUTE_TOOL
tools: [{
tool_slug: "TOOL_SLUG_FROM_SEARCH",
arguments: {/* schema-compliant args from search results */}
}]
memory: {}
session_id: "your_session_id"
Known Pitfalls
- Always search first: Tool schemas change. Never hardcode tool slugs or arguments without calling
RUBE_SEARCH_TOOLS - Check connection: Verify
RUBE_MANAGE_CONNECTIONSshows ACTIVE status before executing tools - Schema compliance: Use exact field names and types from the search results
- Memory parameter: Always include
memoryinRUBE_MULTI_EXECUTE_TOOLcalls, even if empty ({}) - Session reuse: Reuse session IDs within a workflow. Generate new ones for new workflows
- Pagination: Check responses for pagination tokens and continue fetching until complete
Quick Reference
| Operation | Approach |
|---|---|
| Find tools | RUBE_SEARCH_TOOLS with 2chat-specific use case |
| Connect | RUBE_MANAGE_CONNECTIONS with toolkit _2chat |
| Execute | RUBE_MULTI_EXECUTE_TOOL with discovered tool slugs |
| Bulk ops | RUBE_REMOTE_WORKBENCH with run_composio_tool() |
| Full schema | RUBE_GET_TOOL_SCHEMAS for tools with schemaRef |
Powered by Composio
Source
git clone https://github.com/ranbot-ai/awesome-skills/blob/main/skills/2chat-automation/SKILL.mdView on GitHub Overview
Automate 2chat operations using Composio’s 2chat toolkit via Rube MCP. It emphasizes discovering current tool schemas before execution to avoid hardcoding slugs, keeping workflows resilient to updates. The workflow covers setup, connection checks, tool discovery, and multi-tool execution.
How This Skill Works
First, discover available tools with RUBE_SEARCH_TOOLS to fetch current 2chat tool slugs and schemas. Next, ensure an ACTIVE connection to the _2chat toolkit via RUBE_MANAGE_CONNECTIONS, then execute the chosen tool with RUBE_MULTI_EXECUTE_TOOL using the discovered slug and required arguments, memory, and an existing session_id. Throughout, reuse session IDs within a workflow and always include memory and up-to-date schemas.
When to Use It
- Automating recurring 2chat tasks using the latest tool schemas.
- When tool schemas change and you must refresh slugs and args with RUBE_SEARCH_TOOLS.
- Setting up or verifying a 2chat connection before workflows.
- Running a single-tool or multi-tool execution in a session using RUBE_MULTI_EXECUTE_TOOL.
- Batching multiple 2chat actions via RUBE_REMOTE_WORKBENCH for bulk operations.
Quick Start
- Step 1: Verify Rube MCP and 2chat toolkit are accessible using RUBE_SEARCH_TOOLS.
- Step 2: Establish or confirm an ACTIVE connection with RUBE_MANAGE_CONNECTIONS for toolkit _2chat.
- Step 3: Discover tools, then execute a chosen tool with RUBE_MULTI_EXECUTE_TOOL using memory and a session_id.
Best Practices
- Always call RUBE_SEARCH_TOOLS before execution to obtain current tool slugs and input schemas.
- Verify RUBE_MANAGE_CONNECTIONS shows ACTIVE status before running tools.
- Use exact field names and types from the search results; avoid hardcoding.
- Always include memory in RUBE_MULTI_EXECUTE_TOOL calls, even if empty ({}).
- Reuse session IDs within a workflow; generate new ones for new workflows.
Example Use Cases
- A daily 2chat automation workflow that pulls the latest tool schemas and executes a prepared sequence without hardcoding slugs.
- After a schema update, re-discover tools with RUBE_SEARCH_TOOLS and run the updated tool in the same session.
- Initialize and verify an ACTIVE 2chat connection, then dispatch a sequence of 2chat actions in one session.
- Execute multiple 2chat actions in a single session using RUBE_MULTI_EXECUTE_TOOL with discovered tool slugs.
- Bulk 2chat operations using RUBE_REMOTE_WORKBENCH to run several 2chat tasks derived from current schemas.
Frequently Asked Questions
Related Skills
AI/ML Model Testing
PramodDutta/qaskills
Testing machine learning models including accuracy validation, bias detection, drift monitoring, A/B testing, and model regression testing.
api-design-patterns
petekp/claude-code-setup
Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices
workflow-setup
athola/claude-night-market
Configure GitHub Actions CI/CD workflows for automated testing, linting, and deployment. Use for CI/CD setup and quality automation. Skip if CI/CD configured or using different platform.
calendly-automation
davepoon/buildwithclaude
Automate Calendly scheduling, event management, invitee tracking, availability checks, and organization administration via Rube MCP (Composio). Always search tools first for current schemas.
make-automation
davepoon/buildwithclaude
Automate Make (Integromat) tasks via Rube MCP (Composio): operations, enums, language and timezone lookups. Always search tools first for current schemas.
outlook-calendar-automation
davepoon/buildwithclaude
Automate Outlook Calendar tasks via Rube MCP (Composio): create events, manage attendees, find meeting times, and handle invitations. Always search tools first for current schemas.