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---56# Maton AI78Connect your AI agent to SaaS tools via Maton's OAuth connection management. This skill provides:910- **Full UI Dashboard** — Configure API key, view connections, initiate OAuth flows11- **Multi-App Support** — Gmail, Slack, Notion, HubSpot, Jira, Google Workspace, and more12- **Connection Management** — Create, monitor, and delete app connections13- **API Keys Integration** — Maton API key appears in the API Keys tab for easy configuration1415## Overview1617Maton 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.1819## Prerequisites20211. **Maton Account** — Sign up at [maton.ai](https://maton.ai)222. **API Key** — Get your API key from the Maton dashboard233. **Clawdbot Gateway** — v2026.1.0 or later with UI enabled2425## Quick Start2627### Step 1: Get Your API Key28291. Go to [maton.ai](https://maton.ai) and sign in302. Navigate to Settings → API Keys313. Create or copy your API key3233### Step 2: Configure in Clawdbot UI3435**Option A: Via API Keys tab**361. Open Clawdbot Dashboard → **Settings** → **API Keys**372. Find "Maton" in the Environment Keys section383. Enter your API key and click Save3940**Option B: Via Maton tab**411. Open Clawdbot Dashboard → **Tools** → **Maton**422. Click **Configure**433. Paste your API key444. Click **Save**4546### Step 3: Connect Apps47481. Go to **Tools** → **Maton**492. Click **Connect App** and select an app (e.g., Gmail, Slack)503. Complete the OAuth flow in the popup window514. Once status shows **ACTIVE**, the connection is ready5253## Supported Apps5455Maton supports 50+ SaaS applications including:5657| 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 |6465## API Reference6667### Base URL68```69https://ctrl.maton.ai70```7172### Authentication73All requests require a Bearer token:74```bash75curl https://ctrl.maton.ai/connections \76 -H "Authorization: Bearer YOUR_API_KEY"77```7879### Endpoints8081| 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 |8788### Connection Status8990| 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 |9596## Architecture9798### Configuration Storage99100The Maton API key is stored in the main Clawdbot config file:101102```json103{104 "env": {105 "MATON_API_KEY": "your-api-key-here"106 }107}108```109110This integrates with the API Keys tab for centralized key management.111112### Backend RPC Methods113114| 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 |124125### UI Components126127| File | Purpose |128|------|---------|129| `maton-backend.ts` | Gateway RPC handlers |130| `maton-controller.ts` | UI state management |131| `maton-views.ts` | Lit HTML templates |132133## Installation134135See `reference/README.md` for detailed integration instructions.136137### Quick Integration1381391. 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 navigation1424. Add `MATON_API_KEY` to API keys discovery1435. Rebuild and restart144145## UI Features146147### Maton Tab (Tools → Maton)148- Connection status with active/pending counts149- API key configuration form150- Connected apps list with status badges151- App picker modal for new connections152- One-click OAuth flow initiation153154### API Keys Tab Integration155- Shows "Maton" in Environment Keys section156- Direct input field for API key157- Save/Clear functionality158159## Security160161| 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) |166167**Best practices:**168- Rotate API keys periodically169- Review connected apps regularly170- Disconnect unused connections171172## Troubleshooting173174### "Unauthorized" error175- Verify your API key is correct176- Check that the key hasn't been revoked177- Regenerate in Maton dashboard if needed178179### Connection stuck in PENDING180- OAuth flow wasn't completed181- Try the OAuth URL again182- Delete and recreate if URL expired183184### Connection shows FAILED185- OAuth token may have expired186- Delete the connection and create new one187188### Maton not in API Keys tab189- Ensure you're on Clawdbot v2026.1.0+190- Refresh the page after gateway restart191192## Reference Files193194- `reference/maton-backend.ts` — Gateway RPC handlers195- `reference/maton-controller.ts` — UI controller logic 196- `reference/maton-views.ts` — UI rendering (Lit)197- `reference/README.md` — Installation guide198199## Support200201- **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)