Maton AI
Connect your AI agent to SaaS tools via Maton's OAuth connection management. This skill provides:
- Full UI Dashboard — Configure API key, view connections, initiate OAuth flows
- Multi-App Support — Gmail, Slack, Notion, HubSpot, Jira, Google Workspace, and more
- Connection Management — Create, monitor, and delete app connections
- API Keys Integration — Maton API key appears in the API Keys tab for easy configuration
Overview
Maton provides a unified API for connecting to SaaS tools via OAuth. Once connected, you can interact with these tools through Maton's AI capabilities or directly via their API.
Prerequisites
- Maton Account — Sign up at maton.ai
- API Key — Get your API key from the Maton dashboard
- Clawdbot Gateway — v2026.1.0 or later with UI enabled
Quick Start
Step 1: Get Your API Key
- Go to maton.ai and sign in
- Navigate to Settings → API Keys
- Create or copy your API key
Step 2: Configure in Clawdbot UI
Option A: Via API Keys tab
- Open Clawdbot Dashboard → Settings → API Keys
- Find "Maton" in the Environment Keys section
- Enter your API key and click Save
Option B: Via Maton tab
- Open Clawdbot Dashboard → Tools → Maton
- Click Configure
- Paste your API key
- Click Save
Step 3: Connect Apps
- Go to Tools → Maton
- Click Connect App and select an app (e.g., Gmail, Slack)
- Complete the OAuth flow in the popup window
- Once status shows ACTIVE, the connection is ready
Supported Apps
Maton supports 50+ SaaS applications including:
| Category |
Apps |
| Google Workspace |
Gmail, Calendar, Docs, Sheets, Drive, Slides, Ads, Analytics |
| Productivity |
Notion, Airtable, Jira, Calendly |
| Communication |
Slack, Outlook |
| CRM |
HubSpot, Apollo |
| Media |
YouTube |
API Reference
Base URL
https://ctrl.maton.ai
Authentication
All requests require a Bearer token:
curl https://ctrl.maton.ai/connections \
-H "Authorization: Bearer YOUR_API_KEY"
Endpoints
| Method |
Endpoint |
Description |
| GET |
/connections |
List all connections |
| POST |
/connections |
Create new connection |
| GET |
/connections/{id} |
Get connection details |
| DELETE |
/connections/{id} |
Delete connection |
Connection Status
| Status |
Description |
PENDING |
OAuth flow not completed; url contains OAuth link |
ACTIVE |
Connection established and ready to use |
FAILED |
Connection failed; reconnection required |
Architecture
Configuration Storage
The Maton API key is stored in the main Clawdbot config file:
{
"env": {
"MATON_API_KEY": "your-api-key-here"
}
}
This integrates with the API Keys tab for centralized key management.
Backend RPC Methods
| Method |
Purpose |
maton.status |
Get API key status and connection count |
maton.save |
Validate and store API key |
maton.test |
Test the API key |
maton.disconnect |
Remove API key |
maton.connections |
List all connections |
maton.connect |
Create a new connection (returns OAuth URL) |
maton.delete |
Delete a connection |
maton.apps |
List supported apps |
UI Components
| File |
Purpose |
maton-backend.ts |
Gateway RPC handlers |
maton-controller.ts |
UI state management |
maton-views.ts |
Lit HTML templates |
Installation
See reference/README.md for detailed integration instructions.
Quick Integration
- Copy backend handler to
src/gateway/server-methods/maton.ts
- Copy UI files to
ui/src/ui/views/ and ui/src/ui/controllers/
- Add "maton" tab to navigation
- Add
MATON_API_KEY to API keys discovery
- Rebuild and restart
UI Features
Maton Tab (Tools → Maton)
- Connection status with active/pending counts
- API key configuration form
- Connected apps list with status badges
- App picker modal for new connections
- One-click OAuth flow initiation
API Keys Tab Integration
- Shows "Maton" in Environment Keys section
- Direct input field for API key
- Save/Clear functionality
Security
| Aspect |
Implementation |
| Key Storage |
Main config file (~/.clawdbot/clawdbot.json) |
| Key Access |
Never exposed to AI agent |
| OAuth Tokens |
Managed by Maton (automatic refresh) |
Best practices:
- Rotate API keys periodically
- Review connected apps regularly
- Disconnect unused connections
Troubleshooting
"Unauthorized" error
- Verify your API key is correct
- Check that the key hasn't been revoked
- Regenerate in Maton dashboard if needed
Connection stuck in PENDING
- OAuth flow wasn't completed
- Try the OAuth URL again
- Delete and recreate if URL expired
Connection shows FAILED
- OAuth token may have expired
- Delete the connection and create new one
Maton not in API Keys tab
- Ensure you're on Clawdbot v2026.1.0+
- Refresh the page after gateway restart
Reference Files
reference/maton-backend.ts — Gateway RPC handlers
reference/maton-controller.ts — UI controller logic
reference/maton-views.ts — UI rendering (Lit)
reference/README.md — Installation guide
Support
1---
2name: maton
3description: Connect to SaaS tools via Maton AI. Includes full UI integration for Clawdbot Gateway dashboard. Use when setting up Maton integration, connecting apps (Gmail, Slack, Notion, HubSpot, etc.), or managing OAuth connections.
4metadata:
5 source: https://skillmd.com/skills/modbender/maton
6 clawdbot:
7 emoji: 🔗
8 requires:
9 clawdbot: ">=2026.1.0"
10 category: integrations
11---
12
13# Maton AI
14
15Connect your AI agent to SaaS tools via Maton's OAuth connection management. This skill provides:
16
17- **Full UI Dashboard** — Configure API key, view connections, initiate OAuth flows
18- **Multi-App Support** — Gmail, Slack, Notion, HubSpot, Jira, Google Workspace, and more
19- **Connection Management** — Create, monitor, and delete app connections
20- **API Keys Integration** — Maton API key appears in the API Keys tab for easy configuration
21
22## Overview
23
24Maton provides a unified API for connecting to SaaS tools via OAuth. Once connected, you can interact with these tools through Maton's AI capabilities or directly via their API.
25
26## Prerequisites
27
281. **Maton Account** — Sign up at [maton.ai](https://maton.ai)
292. **API Key** — Get your API key from the Maton dashboard
303. **Clawdbot Gateway** — v2026.1.0 or later with UI enabled
31
32## Quick Start
33
34### Step 1: Get Your API Key
35
361. Go to [maton.ai](https://maton.ai) and sign in
372. Navigate to Settings → API Keys
383. Create or copy your API key
39
40### Step 2: Configure in Clawdbot UI
41
42**Option A: Via API Keys tab**
431. Open Clawdbot Dashboard → **Settings** → **API Keys**
442. Find "Maton" in the Environment Keys section
453. Enter your API key and click Save
46
47**Option B: Via Maton tab**
481. Open Clawdbot Dashboard → **Tools** → **Maton**
492. Click **Configure**
503. Paste your API key
514. Click **Save**
52
53### Step 3: Connect Apps
54
551. Go to **Tools** → **Maton**
562. Click **Connect App** and select an app (e.g., Gmail, Slack)
573. Complete the OAuth flow in the popup window
584. Once status shows **ACTIVE**, the connection is ready
59
60## Supported Apps
61
62Maton supports 50+ SaaS applications including:
63
64| Category | Apps |
65|----------|------|
66| **Google Workspace** | Gmail, Calendar, Docs, Sheets, Drive, Slides, Ads, Analytics |
67| **Productivity** | Notion, Airtable, Jira, Calendly |
68| **Communication** | Slack, Outlook |
69| **CRM** | HubSpot, Apollo |
70| **Media** | YouTube |
71
72## API Reference
73
74### Base URL
75```
76https://ctrl.maton.ai
77```
78
79### Authentication
80All requests require a Bearer token:
81```bash
82curl https://ctrl.maton.ai/connections \
83 -H "Authorization: Bearer YOUR_API_KEY"
84```
85
86### Endpoints
87
88| Method | Endpoint | Description |
89|--------|----------|-------------|
90| GET | `/connections` | List all connections |
91| POST | `/connections` | Create new connection |
92| GET | `/connections/{id}` | Get connection details |
93| DELETE | `/connections/{id}` | Delete connection |
94
95### Connection Status
96
97| Status | Description |
98|--------|-------------|
99| `PENDING` | OAuth flow not completed; `url` contains OAuth link |
100| `ACTIVE` | Connection established and ready to use |
101| `FAILED` | Connection failed; reconnection required |
102
103## Architecture
104
105### Configuration Storage
106
107The Maton API key is stored in the main Clawdbot config file:
108
109```json
110{
111 "env": {
112 "MATON_API_KEY": "your-api-key-here"
113 }
114}
115```
116
117This integrates with the API Keys tab for centralized key management.
118
119### Backend RPC Methods
120
121| Method | Purpose |
122|--------|---------|
123| `maton.status` | Get API key status and connection count |
124| `maton.save` | Validate and store API key |
125| `maton.test` | Test the API key |
126| `maton.disconnect` | Remove API key |
127| `maton.connections` | List all connections |
128| `maton.connect` | Create a new connection (returns OAuth URL) |
129| `maton.delete` | Delete a connection |
130| `maton.apps` | List supported apps |
131
132### UI Components
133
134| File | Purpose |
135|------|---------|
136| `maton-backend.ts` | Gateway RPC handlers |
137| `maton-controller.ts` | UI state management |
138| `maton-views.ts` | Lit HTML templates |
139
140## Installation
141
142See `reference/README.md` for detailed integration instructions.
143
144### Quick Integration
145
1461. Copy backend handler to `src/gateway/server-methods/maton.ts`
1472. Copy UI files to `ui/src/ui/views/` and `ui/src/ui/controllers/`
1483. Add "maton" tab to navigation
1494. Add `MATON_API_KEY` to API keys discovery
1505. Rebuild and restart
151
152## UI Features
153
154### Maton Tab (Tools → Maton)
155- Connection status with active/pending counts
156- API key configuration form
157- Connected apps list with status badges
158- App picker modal for new connections
159- One-click OAuth flow initiation
160
161### API Keys Tab Integration
162- Shows "Maton" in Environment Keys section
163- Direct input field for API key
164- Save/Clear functionality
165
166## Security
167
168| Aspect | Implementation |
169|--------|----------------|
170| **Key Storage** | Main config file (`~/.clawdbot/clawdbot.json`) |
171| **Key Access** | Never exposed to AI agent |
172| **OAuth Tokens** | Managed by Maton (automatic refresh) |
173
174**Best practices:**
175- Rotate API keys periodically
176- Review connected apps regularly
177- Disconnect unused connections
178
179## Troubleshooting
180
181### "Unauthorized" error
182- Verify your API key is correct
183- Check that the key hasn't been revoked
184- Regenerate in Maton dashboard if needed
185
186### Connection stuck in PENDING
187- OAuth flow wasn't completed
188- Try the OAuth URL again
189- Delete and recreate if URL expired
190
191### Connection shows FAILED
192- OAuth token may have expired
193- Delete the connection and create new one
194
195### Maton not in API Keys tab
196- Ensure you're on Clawdbot v2026.1.0+
197- Refresh the page after gateway restart
198
199## Reference Files
200
201- `reference/maton-backend.ts` — Gateway RPC handlers
202- `reference/maton-controller.ts` — UI controller logic
203- `reference/maton-views.ts` — UI rendering (Lit)
204- `reference/README.md` — Installation guide
205
206## Support
207
208- **Maton**: [maton.ai](https://maton.ai)
209- **ClawdHub**: [clawdhub.com/skills/maton](https://clawdhub.com/skills/maton)
210- **Discord**: [discord.com/invite/clawd](https://discord.com/invite/clawd)