How We Built More Than 100 Integrations for Our Product

If there is one thing that sets Akita apart from its competitors in Customer Success software, it is our ability to ingest data from virtually any data source a customer may have. This includes:

If the data is out there, Akita can usually import it and use it to transform your Customer Success department into a well oiled machine!

How We Built More Than 100 Integrations for Our Product?

But writing integrations are hard! How do you do it? It is hard.

And things can get very complicated if you let them.

We succeeded by starting with a simple pattern that works for most integrations and then adding the ability to override this pattern through additional configuration on a per-Provider and per-customer basis.

The Model

We have a few terms at Akita we use to describe our data model:

  • Provider
    • This is the source of the data. In most cases this is a SaaS application (Salesforce.com, Zendesk, Intercom, etc) but also includes “Customer-provided Data”, cloud-accessible databases (Windows Azure, MySQL, Postgres), data warehouses (Redshift, BigQuery), customers own REST APIs, etc.
  • Interaction Type
    • Akita is a Customer Success Management platform and we typically ingest specific types of data (Accounts, Contacts, Deals, Tickets, Tasks, etc). We call these Interaction Types. We also provide the ability to retrieve custom Interaction Types.
  • Integration
    • This is the connection between an Akita customer and a Provider. ie. “Our Salesforce Instance”. Our customers authorise the connection using OAuth (when possible) or API tokens.
  • Integration Object
    • An Integration Object is the relationship between an Integration and an Interaction Type. One example is “Accounts from your Salesforce instance”.
  • Interaction
    • This is a single instance of an Integration Object. For instance, it might be a “Company XYZ from Salesforce” or a specific support ticket in Zendesk.

The Process

Once you have authorized an Integration between Akita and a Provider (usually a 3rd-party SaaS app), there is a 3-step process that runs constantly: schedule, retrieve and process (and REPEAT!)

Schedule

In most cases, Akita syncs your data multiple times throughout the day.

The Scheduler runs continuously and finds those Integration Objects that require syncing. This takes into account their defined sync frequency (how many times per day) and the time that has elapsed since the last sync. Any Integration Objects that require syncing are then sent to the Retriever.

Not all Interaction Types are created equal. Some must be synced more frequently than others and some integration partners have higher API limits. We can sync data more or less frequently on a per-Provider / per-Interaction Type basis depending on the limits of the Provider and the needs of each customer.

Retrieve

The Retriever is responsible for connecting to the Provider and, well, retrieving the data. We spent quite a while coming up with the name. The Retriever itself is relatively simple. It:

  • Requests any data that has changed since the last successful sync;
  • If the request fails due to out-of-date oauth credentials, it will refresh the token and try again;
  • Otherwise, it checks if the request was a success or a failure.

If the request was a success, it:

  • Passes each retrieved Interaction to the Processor; and
  • Updates the “Last Synced At” property of the Integration Object.

If it was a failure, it:

  • Logs the reason;
  • Alerts Akita as well as the customer; and
  • (When appropriate) disables the Integration.

Process

When Interactions are retrieved successfully, Akita must analyze each Interaction. The Interaction Type (an email, an ‘Account’ record, a deal, etc) determines what must be done with each retrieved Interaction. The Processor is responsible for several things:

  • It stores the Interaction in our database—over a few related tables;
  • If the Interaction is an ‘Account’ or ‘Contact’ record, it attempts to match it to an existing Account or Contact record in Akita; or
  • If no matches are found, it may need to create a new Account or Contact in Akita.

No real magic here. Nothing mind-blowing. No secret sauce. Just a solid foundation that can be extended to build integrations with almost any kind of data source we need.

In the next few posts, I’ll dive deeper into each part of the process and point out a few things that might trip you up if you are going to write your own integrations. We’ll look at how we accomodate different types of authentication, how we handle errors, how we make data accessible to our users, and more. Stay tuned!

Update: Part 2 is out! How Frequently Our Customer Success Application Syncs Your Data

Related Articles

Best customer segmentation software Best Customer Segmentation Software to Utilize in 2024

Understanding customers at scale has come a long way. Back in the day, companies used simple attributes to carve up their customer base in some way to apply different resources to support and/or expand those customers. Boy was it blunt though! Generally, it never got far beyond segmenting your account list by their spending or […]

Read more
best customer success software Best Customer Success Software for Your CS Department in 2024

If you are reading this, you are faced with a real challenge. Either you already manage a customer success function and your existing toolset is not fit for purpose, or you have decided to start a customer success department and want to implement the right software as a solid foundation for your Customer Success Managers […]

Read more
top customer retention software Top Customer Retention Software to Reduce Churn in 2024

Figuring out the right customer retention management software to help manage your Customer Retention goals can be tricky. It really comes down to what your specific goals are, what type of market you serve, the customer data you retain and where that data resides. There are some specific types of tools you should consider. Customer […]

Read more
customer onboarding statistics 15 Customer Onboarding Statistics and Trends in 2024 to Note

In the SaaS world today, each lead you turn into a customer is a call for celebration. Still, to ensure them a smooth journey and success with your product, it is crucial to first help them understand how they can use your product or service effectively to get all the benefits they offer in the […]

Read more
how to become a customer success manager How to Become a Customer Success Manager: All You Need to Know

Nowadays, it seems that acquiring each new customer calls for celebration. Yet, their choosing you over competition is merely the beginning of a beautiful friendship, as retaining them is equally, or usually even more, difficult. 

Read more
Voice of the customer best practices Voice of the Customer Best Practices and Tips in 2024

When we aim to understand someone or something, the first step is to listen or observe carefully. The same rule applies for customers.  If you wish to truly meet your customers and understand their concerns and goals, you must not only solicit and gather their feedback but also act on it. This is precisely what […]

Read more
what is product discovery What Is Product Discovery: Definition, Benefits and How to Do it?

Developing, launching and promoting a new product or feature is not only time and energy-consuming but also expensive. This is why frustration is inevitable if the new feature of a product goes unnoticed or unused.  To avoid that, companies must first understand market trends and customer needs to be able to create products that address […]

Read more
What is customer stickiness What is Customer Stickiness: How to Measure & Increase it?

Although customer churn and retention are the most important metrics that help you assess the overall health of your business, they often fail to explain why customers leave or stay with you. This is precisely where customer stickiness can help you. To answer the question “What is customer stickiness?” with ultimate precision, we must thoroughly […]

Read more
Customer success books Best Customer Success Books You Should Read in 2024

Customer success is the backbone of a successful SaaS business. The way your CS team manages and nurtures customer relationships often determines the size and quality of your customer base and, therefore, affects revenue and growth.  A smart customer success manager knows very well that customer success is a dynamic and ever-changing field where continuous […]

Read more