Context is what Maton observes in your connected apps through the gateway. When a request reads or writes an object, such as a Gmail message, a Stripe customer, or a Linear issue, Maton records it as a node and links it to related nodes.
Query context with GraphQL to see which objects you've handled, what's pending, and what changed since your last check, without calling each app again. Attach tags and metadata to nodes to record workflow status, such as triaged or needs-reply.
Context is not captured by default. To enable it, open the More (⋯) menu on the Context page and turn on Capture context or set capture_bodies and capture_context to true using the Settings API.
Context stores IDs and relations, not content. Use the gateway with the node's ID to fetch content.
Concepts
Nodes
A node represents an object in an app. Each node is a generic node, with fields shared by all nodes. It is also a typed node, such as GoogleMailMessage or StripeCustomer, with relations specific to its type, such as thread, from, and attachments. Every node stores the following fields:
| Field | Description |
|---|---|
id | The node identifier such as google-mail/users/{userId}/messages/{messageId}. |
app | App the node came from such as google-mail. |
createdAt | When the node was first observed. |
updatedAt | When the node was last updated. |
observedAt | When the node was last observed, whether or not anything changed. |
deletedAt | When the node was last deleted. Null while it exists. |
tags | Your tags on the node such as urgent or billing/overdue. |
metadata | Your key-value metadata on the node. |
observations | Requests that observed the node. |
Relations
A relation links two nodes such as a message to its thread. A relation starts when a request observes the link and ends when a later request observes it gone. Ended relations are hidden unless you pass includeDeleted: true. Every relation stores the following fields:
| Field | Description |
|---|---|
property | Relation name such as thread or labels. |
sourceId | ID of the node the relation starts from. |
targetId | ID of the node the relation points to. |
createdAt | When the relation was first observed. |
updatedAt | When the relation was last updated. |
deletedAt | When the relation was last observed gone. Null while it exists. |
Observations
An observation records one request that saw a node. Each has observedAt and the requestId of the gateway request.
Supported apps
Only requests to these apps are recorded as context.
| Name | ID |
|---|---|
| Airtable | airtable |
| Asana | asana |
| ClickUp | clickup |
| Fathom | fathom |
| Fireflies | fireflies |
| GitHub | github |
| Gmail | google-mail |
| Google Business Profile | google-business-profile |
| Google Calendar | google-calendar |
| Google Classroom | google-classroom |
| Google Contacts | google-contacts |
| Google Docs | google-docs |
| Google Drive | google-drive |
| Google Forms | google-forms |
| Google Meet | google-meet |
| Google Sheets | google-sheets |
| Google Slides | google-slides |
| Google Tasks | google-tasks |
| HubSpot | hubspot |
| Jira | jira |
| Linear | linear |
| Microsoft To Do | microsoft-to-do |
| monday.com | monday |
| Notion | notion |
| Outlook | outlook |
| SharePoint | sharepoint |
| Slack | slack |
| Stripe | stripe |
| Xero | xero |
| YouTube | youtube |