Gmail and OTO Integration
Automate the handoff between Gmail and OTO - your communication events flow into commerce 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 OTO
Detailed info you need to know about Gmail and OTO integrations in WEXTL. Explore which modules apps support and how you connect them.
How to connect Gmail to OTO
Set up your Gmail and OTO integration in 3 simple steps[2]. No coding required. Up to 10 minutes setup.
STEP 1
Connect Gmail and OTO
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 OTO 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 OTO. Use filters or a JS custom code step in between. Everything is on the canvas.
How does the integration between Gmail and OTO work in WEXTL?
WEXTL exposes actions and triggers for Gmail and OTO 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 triggersOTO 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.
OTO modules
- Activate a Carrier Activates a carrier under a Delivery Option Name with the Settings it needs, such as its account details, which are masked in logs (needs the Starter plan or higher).
- Activate Sales Channel Connects or disconnects a sales channel using the Store URL and an Admin API Access Token, which is masked in logs.
- Assign a Driver Assigns OTO FLEX orders to a driver, who is named by Driver ID or Driver Email, and shows the result for each order (needs the Starter plan or higher).
- Buy Credit Starts a wallet top-up for an Amount and gives a payment link to finish it. A server error is not retried, so check the wallet before running it again.
- Cancel a Shipment Cancels the shipment of an order, optionally for one Shipment ID. Without a Confirm choice the request never goes out.
- Cancel an Order Cancels an order that has no shipment yet, found by Order ID or by the OTO ID. An order with a shipment cannot be canceled this way.
- Check Contract Rates Prices a parcel across your own carrier contracts, with Total Due for cash on delivery. It uses the same route and size fields as the public rates (needs the Starter plan or higher).
- Check Coverage Tells whether OTO covers a place, located by coordinates or by city, for branch pickup, courier delivery and bullet delivery (needs the Starter plan or higher).
- Check Inventory Stock Reads the forecast and on-hand stock of SKUs, split by location (needs the Starter plan and the WMS add-on).
- Check Shipping Rates Prices a parcel by Weight and size between an Origin City and a Destination City across the carriers that OTO offers.
- Check the Availability of an Order Checks where an order can be fulfilled and lists the matching locations. Rule IDs pick specific rules in place of the default set (needs the Pro plan or higher).
- Check the Global Stock Reads the stock of SKUs summed over all locations of the account (needs the Starter plan and the WMS add-on).
- Create a Box Defines a box size by Name, Length, Width and Height for packing.
- Create a Brand Adds a brand with a Store Name, a Logo and a Default Warehouse ID, and can attach stores that sit on a sales channel (needs the Starter plan or higher).
- Create a Pickup Location Adds a warehouse or a branch with a Code, a Name, an address and contact details, plus an optional serving radius and short address code.
- Create a Product Adds a product with a Product Name and SKU, plus price, barcodes, category and custom attributes. Use Packaging Material to mark packing supplies.
- Create a Return Shipment Books a return shipment for an order with the Items that are sent back, a Pickup Location and a Delivery Option. Check the order in OTO before booking it a second time.
- Create a Shipment Books a carrier shipment for an order through a Delivery Option, which can cost money. If the call fails, look the order up in OTO before another attempt.
- Create an Inventory Order Creates an inbound or outbound inventory order for a Location Code with its Items, a waybill number and the dates (needs the Starter plan and the WMS add-on).
- Create an Order Creates an order in OTO with its customer, items and package size, and optionally books the shipment at once through Create Shipment. A server error is not retried, so check OTO before running it again.
- Get a Delivery Estimation Estimates delivery times between an origin and a destination address from the carrier settings and the SLA method, such as city based (needs the Scale plan or higher).
- Get a National Address Resolves a Saudi short address code into its full national address.
- Get a Return Link Gives the link where a customer can start a return of an order (needs the Starter plan or higher).
- Get AI Delivery Estimates Predicts delivery dates for a parcel by route and size, with Include Estimated Dates turned on for the dates themselves (needs the Scale plan or higher).
- Get an Order AWB Gives the link to the air waybill of an order. Choose Print Return AWB for the return shipment and International Proforma for the proforma invoice.
- Get an Order Delivery Fee Gives the delivery fee that each carrier would charge for an order that already exists in OTO.
- Get COD Transactions Shows the current balance, the amount withdrawn and the upcoming transfer for cash collected on delivery, plus its wallet transactions.
- Get Order Details Fetches an order with its tracking link, package weight, carrier, origin city, amount and the documents attached to it.
- Get Order History Reads the status history of orders, with an entry for each change.
- Get Order Status Reads the current state of an order with its tracking link, carrier, tracking number and air waybill link.
- Get Return Details Shows the return of an order with its reason, status, source and the items sent back.
- Get the Account Info Shows the OTO account behind the credential, with its remaining credit, free shipments, package name and document status.
- Get the Config of a Carrier Reads the settings that a carrier needs before it can be activated, with an example JSON of the values (needs the Starter plan or higher).
- Get the Config of a Sales Channel Reads the store address, name and active state saved for a sales channel. The admin token is masked and left out.
- Get the Marketplace Client Info Reads the name, email, phone, credit and validity date of a marketplace sub-account (needs a marketplace account).
- Hold Order Parks an order without canceling it, so it stays in OTO until it is released again. The reference publishes no further inputs.
- List Available Cities Shows the cities that OTO delivers to, with their Arabic names. Use City Limit to cut the list short.
- List Available Time Slots Shows the delivery time slots on offer for a Service Type and Package Size at a place with a Latitude and Longitude (needs the Starter plan or higher).
- List Boxes Shows the packing boxes that were defined, each with its name, length, width and height.
- List Brands Retrieves the brands of the account, each with its store name, warehouse and logo (needs the Starter plan or higher).
- List Carrier Branches Returns the pickup points that a carrier runs in a country.
- List Carriers Returns the carriers that OTO can connect to, each with its name and code.
- List Cities Returns one page of the cities of a Country that OTO knows, with the state of each city.
- List Credit Transactions Retrieves the wallet credit movements between two dates, 50 rows per request.
- List Delivery Options Retrieves the delivery options active on the account, each with its name and ID. The ID goes into orders and shipments (needs the Starter plan or higher).
- List Order Customer Notifications Returns the notifications that were sent to the customer of an order, one entry for each action taken (needs the Scale plan or higher).
- List Orders Retrieves the orders newest first, 50 per request, optionally narrowed by Status and a date range.
- List Packing Orders Lists the orders of one warehouse that are ready to be packed, with a count (needs the Starter plan and the WMS add-on).
- List Pickup Cities Shows the cities where store pickup is available, which feed the store pickup flow (needs the Starter plan and the WMS add-on).
- List Pickup Locations Shows warehouses and branches together, each marked with its kind, and narrows them by date or Status.
No ready-made Gmail → OTO automation yet. Describe your own in the AI Workflow Builder.
Build a Gmail and OTO workflow with AI
Describe your automation with Gmail and OTO - and our AI Workflow Builder will make it done for you.
What you can automate with Gmail and OTO
Explore alternative integrations
There are other apps[9] supported by WEXTL that can be paired with Gmail and OTO 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 OTO.
References
List of sources used to gather information about the Gmail and OTO integration.
- Gmail and OTO integration source code, module specs and credentials implementation.
- Our Gmail and OTO integration documentation, structured input and output parameters, scopes, and authentication methods.
- Official vendor API documentation for Gmail and OTO, 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
- OTO integration information
- WEXTL® Scheduling
- WEXTL® Pricing and Trial
- WEXTL® Apps Library
How we write our apps documentation
Explore how WEXTL® crafted Gmail and OTO integration page documentation. Used sources, the role of AI, and how the team validates the result.

