Pro-Code Workflows for eCommerce Operations

Dom Steil
Stateset
Published in
4 min readApr 6, 2022
The future of commerce operations is here

There is a new breadth of web application tools driving the future of commerce operating systems. This next generation of traditional RDBMS, API and BPM services are being built in the open by global communities, with clients spanning across many programming languages and developer frameworks. At Stateset, we are excited about the combination of the following technologies that enhance the ability for coders to develop distributed workflows to optimize commerce operations. Combinatorial creativity of next-gen technology is what gives our customers the sharpest tools and deepest technology advantages that make all the difference for their business.

Next.js

Next.js is the best-in-class web framework for building React websites and applications. It allows users to create SSR and SSG web apps with serverless APIs. The next.js framework is powerful in that it provides a structured and scalable way to build and deploy web applications. Developers from around the world are picking Next.js as the premier React framework to quickly deploy best-in-class, modern web applications.

Hasura

Hasura is a Graphql engine on PostgreSQL. But it is actually much more than that! It is an unbelievably fast and declarative way to build your own data models with events, subscriptions and serverless APIs. This has been commonly referred to as the JAM Stack and/or 3factor.app. With the power of graphQL over PostgreSQL, developing an event-driven back-end has never been faster. Lastly, Hasura enables remote-joins with other graphQL endpoints giving you and your team a single API across all of your data and 3rd party applications. Check out Stateset on the Hasura Data Hub: https://hasura.io/data-hub/remote-schemas/stateset-graphql-api/

Temporal

Temporal is a workflow framework and asynchronous scheduler for managing the entire life-cycle of workflows. The temporal framework allows activities to be defined and workflows to execute them based on the state or specific signals. Temporal provides the workflow management engine to combine the power of serverless API calls with a deterministic scheduler for execution.

A Real Use Case: Returns Management Automation (RMA)

Returns can be quite the headache. If you don’t have things automated, you most likely will have to hire an additional BA to sign in to FedEx to print a label, email that label to the customer, maintain a spreadsheet of tracking information, keep track of refunds, recalculate taxes and restocking fees; it quickly becomes a massive problem as your company scales. Every morning may feel like a fire drill with your customer service inbox being flooded with requests for updates. Your customer service team may not even have the appropriate access to the apps or systems to provide an accurate update to the customer. Overall, both you and your customers want a much more automated post-purchase experience.

With Stateset, your organization can codify all of the steps into a streamlined workflow that is completely automated across multiple apps:

await wf.condition(() => state === “rma-approved”)await wf.condition(() => state === “generating-label”)await generateLabel(label);await sendReturnEmail(email);await attachLabelToZendesk(label);await wf.condition(() => state === “attached-label-to-zendesk”)await updateZendeskWithTracking(tracking_information);await cancelStripeSubscription(subscription_id);await wf.condition(() => state === “subscription-cancelled”);await wf.condition(() => state === “item-picked”)await updateStateset(“item-picked”, id);await wf.condition(() => state === “arrived-at-warehouse”)await updateStateset(“arrived-at-warehouse”, id);await wf.condition(() => state === “condition-updated”)await processRefundInStripe(order_id);await wf.condition(() => state === “refund-processed”)await updateStateset(“refunded”, id);

In this simple example we can declare the entire RMA lifecycle and the various activities and updates across multiple systems. Then as the workflow progresses, Stateset is updated; giving your internal and external teams a single-source-of-truth to manage your customer’s post-purchase experience. Lastly, Stateset can schedule automated reporting for external analytics tools or embedded analytics for executive teams across marketing and operations.

The combination of these three technologies makes for a best-in-class commerce operating system. Stateset provides a hosted version of these technologies and allows organizations such as merchants, warehouses, developer agencies and other partners to have a single point API to all work off of. Stateset empowers these organizations to move faster and deploy more often. With out of the box integrations for commerce applications such as Shopify, Gorgias, ShipStation, Quickbooks, and Slack; Stateset allows you to automate workflows across all of the apps you are already using faster than ever before.

Pro-Code is the future of commerce operations. Don’t worry about implementing a technology stack from ten years ago; you don’t want to be the DTC business living in the year 2030 with 2010 tech. Stateset can help you get to where you need to be to scale your commerce operations in a way that is faster and cheaper than legacy systems. If you want to see how give us a call at 929–267–3113 or reach out at dom@stateset.io to book a demo of the platform.

--

--