Gmail and Keen Integration
Automate the handoff between Gmail and Keen - your communication events flow into analytics actions on a visual canvas your team can read. Set up the workflow once with 3 simple steps in the WEXTL® builder, let AI take smart decisions between apps, and never write a line of glue code again.
- 3-day trial
- Cancel anytime
- Up to 10 minutes quick set up
- GDPR
- Data Encryption
- 2FA
- Local Data Region
Learn about Gmail and Keen
Detailed info you need to know about Gmail and Keen integrations in WEXTL. Explore which modules apps support and how you connect them.
How to connect Gmail to Keen
Set up your Gmail and Keen integration in 3 simple steps[2]. No coding required. Up to 10 minutes setup.
STEP 1
Connect Gmail and Keen
Save credentials in WEXTL once. We store them encrypted and reuse the authorization across every workflow[3]. No coding or API skills required.
STEP 2
Build a workflow
Paste selected Gmail and Keen nodes onto the canvas[4], or describe what you want and WEXTL wires the flow together with AI Builder.
STEP 3
Map your data
Choose which fields need to sync between Gmail and Keen. Use filters or a JS custom code step in between. Everything is on the canvas.
How does the integration between Gmail and Keen work in WEXTL?
WEXTL exposes actions and triggers for Gmail and Keen that help you connect apps and automate repetitive tasks[1]. A trigger is an event that happens, and an action is a step that performs when the event has occurred.
Gmail triggersKeen actions
Gmail modules
- Batch Delete Email Messages Deletes several email messages in one request from their Message IDs. Trash a Message moves a single message to the trash instead of removing it.
- Create a Draft Email Saves a new draft built from its Recipient Email, Sender Email, Email Subject and Email Content. Output has the draft ID and Message, and Send a Draft Email can send it later.
- Delete a Draft Email Deletes a saved draft from your Gmail mailbox by its ID. Deletion is permanent.
- Delete a Thread Removes an email thread by ID in Gmail. It stays deleted.
- Delete an Email Message Deletes one email message, using its message ID. Removal is permanent.
- List Draft Emails Lists your saved drafts, one item per draft. Use Query to search with Gmail syntax and Limit to cap the results.
- List Messages Returns messages from your mailbox, one item per message. Use Query for Gmail search syntax, or Label IDs to keep only messages that carry all of the labels listed.
- List Threads Lists conversation threads in your mailbox, each with its Snippet and Messages. Narrow them with Query or Label IDs, and use Limit to cap the count.
- Make an API Call Sends a free-form request to the Gmail REST API, signed with your saved credential.
- Retrieve a Draft Email Returns one email draft by ID, with the draft ID and Message. Use Format to get the full message, only metadata, a minimal view or the raw source.
- Retrieve a Thread Fetches one email thread by ID, returning its Snippet, History ID and every message in it. Choose full messages, metadata only or a minimal view with Format.
- Retrieve an Email Message Fetches one email message by ID, including its Subject, From, To, Text content, HTML content and Attachments.
- Send a Draft Email Sends one of your saved drafts to every recipient listed on it. The ID, Thread ID and Snippet of the sent message are returned.
- Send an Email Message Sends a new email from the From address to the To address with a Subject and Email Content. For a message you saved first, use Send a Draft Email.
- Trash a Message Moves one email message to the trash. Untrash a Message reverses this for the same message.
- Trash a Thread Moves a whole thread, with every message in it, to the trash. Use Untrash a Thread to take it back out.
- Untrash a Message Lifts one message out of the trash. Trash a Message moves one there.
- Untrash a Thread Removes an email thread from the trash. Use Trash a Thread to send it back there.
- Update a Draft Email Overwrites a saved draft with a new Recipient Email, Sender Email, Email Subject and Email Content.
- Update the Labels of a Thread Adds or removes labels on a thread, up to 100 labels per update for Add Label IDs and for Remove Label IDs.
- Watch Email Messages Checks your mailbox on a schedule and starts the workflow for each new message. Use Label IDs to watch only certain labels, and Limit to cap how many messages each check handles.
Keen modules
- Create a Cached Dataset Defines a cached dataset with a Name, a Display Name, a Query and index properties. Keen precomputes it on a schedule, and the dataset cannot be updated, only recreated.
- Create a Project Adds a project to your organization from a Name, with an optional list of existing Users and a Preferences object.
- Create a Saved Query Stores a Query under a Name for later runs. A Refresh Rate (Hours) from 4 to 48 makes it a cached query that Keen reruns on that schedule, and 0 keeps it plain.
- Create an Access Key Makes a scoped key that is limited to a chosen list of actions and can carry automatic query filters. The new key is shown once in the result, so store it right away.
- Delete a Cached Dataset Removes a cached dataset together with the results Keen precomputed for it.
- Delete a Project Deletes a project from your organization after Confirm is switched to Yes. Keen documents project deletion as a hard delete.
- Delete a Saved Query Removes one saved query definition from the project.
- Delete an Access Key Deletes an access key, so applications that still use it stop working.
- Delete an Event Collection Deletes a whole event collection with every event in it, once Confirm is Yes. Keen performs a hard delete.
- Delete an Event Property Removes one property from a collection and from all its stored events, once Confirm is Yes. This is a hard delete.
- Delete Events Deletes events that match a Timeframe, Filters or both, once Confirm is Yes. The module stops when neither is given, so it never wipes a whole collection by accident.
- Get a Cached Dataset Reads the definition of a cached dataset, with its query and index properties. Check Status in the result to see whether Keen has finished computing it.
- Get a Project Loads one project of your organization with its Users and Preferences, using the Organization Key from the credential. The API Keys in the result are hidden in the log.
- Get a Saved Query Loads the query stored under a saved name together with its Refresh Rate. Get Saved Query Results runs it.
- Get an Access Key Shows a scoped key with its Name, whether it Is Active, its Permitted actions and its Options.
- Get an Event Collection Reads the schema of one event collection, listing each Property with the type Keen inferred.
- Get an Event Property Fetches the Type that Keen inferred for a single property of a collection.
- Get Cached Dataset Results Fetches precomputed rows of a cached dataset for one Index By value over a Timeframe. Turn on Zero Fill to get empty intervals as zeros.
- Get Project Resources Shows the resource links of your project, such as the events and queries URLs. It also confirms the Project ID and Master Key work.
- Get Saved Query Results Fetches the current result of a saved query, or the latest cached result when the query refreshes on a schedule.
- List Access Keys Pages through access keys, with the Permitted actions of each. Set Name to keep only keys with that name.
- List API Versions Lists the API versions that Keen exposes, each with its URL, its version number and an Is Public flag.
- List Available Queries Gathers the query resources that the project exposes, one link per analysis type.
- List Cached Datasets Retrieves cached datasets, following the next page cursor from Keen until the Limit is reached.
- List Event Collections Shows every event collection of the project, up to 5000. Set Include Schema to No to drop the Properties from each row.
- List Projects Pulls every project in the organization along with Users and Preferences, masking each API Keys block in the log.
- List Saved Queries Browses every saved query definition, listing its Query, Refresh Rate and dates.
- Make an API Call Sends a free-form request to the Keen REST API, signed with your saved credential.
- Record an Event Stores one event in a collection and creates the collection on first use. Fill Uniqueness Token so that sending the same event again stores it once.
- Record Multiple Events Stores events for several collections in one request, taken from a JSON object that maps collection names to event arrays. A failed event stops the module with an error, and every event gets its own result row.
- Revoke an Access Key Switches an access key off. Unrevoke an Access Key turns it back on later.
- Run a Count Counts the events in a Timeframe for one collection. Add Group By or Interval to split the count into groups or time buckets, and Filters to narrow what counts.
- Run a Count Unique Counts distinct values of a Target Property across a collection in a Timeframe, such as unique users.
- Run a Funnel Measures how many actors reach each step of a sequence, defined by Steps that each name a collection and an actor property. Turn on With Actors to list who completed each step.
- Run a Maximum Finds the highest figure recorded in a numeric Target Property during a Timeframe, optionally per Interval or Group By.
- Run a Median Computes the median of a numeric Target Property across all events in a Timeframe.
- Run a Minimum Reports the lowest figure in a numeric Target Property over a Timeframe, optionally split per Interval or Group By.
- Run a Multi-Analysis Runs several named analyses over one collection and Timeframe in a single request. Give Analyses as a JSON object that names each analysis and its type.
- Run a Percentile Returns the value under which a chosen Percentile falls for a numeric Target Property, such as the 95th percentile of load time.
- Run a Standard Deviation Calculates how widely a numeric Target Property varies over a Timeframe.
- Run a Sum Adds up a numeric Target Property across a Timeframe, giving revenue per day when Interval is daily.
- Run an Average Calculates the mean of a numeric Target Property within a Timeframe, and per group or interval when asked.
- Run an Extraction Pulls raw events from a collection for a Timeframe. Set Latest to keep only the newest N, Property Names to limit the columns, or Email to have Keen send a download link instead of rows.
- Select Unique Values Lists the distinct values that a Target Property takes across the events of a Timeframe.
- Unrevoke an Access Key Turns a revoked access key back on, so applications that use it regain access.
- Update a Project Changes a project by renaming it through Name or by editing Users and Preferences. Users given here replace the whole user list, so include everyone who keeps access.
- Update a Saved Query Modifies a saved query via its Query, Refresh Rate (Hours) or Metadata. Keen replaces the whole definition on every write, so the module reads the current one first and keeps what you leave empty.
- Update an Access Key Edits a scoped key through its Name, Is Active state, Permitted list or Options. Whatever Permitted holds then replaces the current list instead of adding to it.
- Update Events Sets or changes properties on stored events in bulk, described by Property Updates. Add a Timeframe and Filters to limit which events change.
- Watch New Events Polls a collection and starts the workflow for every event whose keen timestamp is newer than the last check. The first check reads only the last hour, and events recorded later with an older timestamp are missed.
No ready-made Gmail → Keen automation yet. Describe your own in the AI Workflow Builder.
Build a Gmail and Keen workflow with AI
Describe your automation with Gmail and Keen - and our AI Workflow Builder will make it done for you.
What you can automate with Gmail and Keen
Explore alternative integrations
There are other apps[9] supported by WEXTL that can be paired with Gmail and Keen integrations. Pick any from the list below if the current combination isn't the one you need.
Frequently asked questions
Common questions about connecting Gmail and Keen.
References
List of sources used to gather information about the Gmail and Keen integration.
- Gmail and Keen integration source code, module specs and credentials implementation.
- Our Gmail and Keen integration documentation, structured input and output parameters, scopes, and authentication methods.
- Official vendor API documentation for Gmail and Keen, used to verify field meanings, authentication flows, and anything our own specs don't fully capture.
- WEXTL® visual workflow builder, anonymized data from our technical support team.
- Gmail integration information
- Keen integration information
- WEXTL® Scheduling
- WEXTL® Pricing and Trial
- WEXTL® Apps Library
How we write our apps documentation
Explore how WEXTL® crafted Gmail and Keen integration page documentation. Used sources, the role of AI, and how the team validates the result.

