Maton
Concept

Overview

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:

FieldDescription
idThe node identifier such as google-mail/users/{userId}/messages/{messageId}.
appApp the node came from such as google-mail.
createdAtWhen the node was first observed.
updatedAtWhen the node was last updated.
observedAtWhen the node was last observed, whether or not anything changed.
deletedAtWhen the node was last deleted. Null while it exists.
tagsYour tags on the node such as urgent or billing/overdue.
metadataYour key-value metadata on the node.
observationsRequests 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:

FieldDescription
propertyRelation name such as thread or labels.
sourceIdID of the node the relation starts from.
targetIdID of the node the relation points to.
createdAtWhen the relation was first observed.
updatedAtWhen the relation was last updated.
deletedAtWhen 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.

NameID
Airtableairtable
Asanaasana
ClickUpclickup
Fathomfathom
Firefliesfireflies
GitHubgithub
Gmailgoogle-mail
Google Business Profilegoogle-business-profile
Google Calendargoogle-calendar
Google Classroomgoogle-classroom
Google Contactsgoogle-contacts
Google Docsgoogle-docs
Google Drivegoogle-drive
Google Formsgoogle-forms
Google Meetgoogle-meet
Google Sheetsgoogle-sheets
Google Slidesgoogle-slides
Google Tasksgoogle-tasks
HubSpothubspot
Jirajira
Linearlinear
Microsoft To Domicrosoft-to-do
monday.commonday
Notionnotion
Outlookoutlook
SharePointsharepoint
Slackslack
Stripestripe
Xeroxero
YouTubeyoutube

Next

On this page