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