Connect your AI agent to SaaS tools via Maton's OAuth connection management. This skill provides:
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.
Option A: Via API Keys tab
Option B: Via Maton tab
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 |
https://ctrl.maton.ai
All requests require a Bearer token:
curl https://ctrl.maton.ai/connections \
-H "Authorization: Bearer YOUR_API_KEY"
| Method | Endpoint | Description |
|---|---|---|
| -------- | ---------- | ------------- |
| GET | /connections | List all connections |
| POST | /connections | Create new connection |
| GET | /connections/{id} | Get connection details |
| DELETE | /connections/{id} | Delete connection |
| Status | Description |
|---|---|
| -------- | ------------- |
PENDING | OAuth flow not completed; url contains OAuth link |
ACTIVE | Connection established and ready to use |
FAILED | Connection failed; reconnection required |
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.
| 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 |
| File | Purpose |
|---|---|
| ------ | --------- |
maton-backend.ts | Gateway RPC handlers |
maton-controller.ts | UI state management |
maton-views.ts | Lit HTML templates |
See reference/README.md for detailed integration instructions.
src/gateway/server-methods/maton.tsui/src/ui/views/ and ui/src/ui/controllers/MATON_API_KEY to API keys discovery| 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:
reference/maton-backend.ts — Gateway RPC handlersreference/maton-controller.ts — UI controller logic reference/maton-views.ts — UI rendering (Lit)reference/README.md — Installation guide共 1 个版本