Menu

Expand
Rate this page:

Twilio Frontline Overview

The Twilio Frontline mobile application leverages the Twilio Conversations API to allow deskless employees to communicate with their customers using the Frontline mobile application. To understand how Frontline works under the hood, take a look at the diagram below:

Frontline in operation

Note that there are three interfaces working together: Twilio Conversations API, the Twilio Frontline mobile app and the Customer Resource. The Conversations API powers Frontline’s main functionality, while Customer Resource is controlling everything through the Conversations API and Twilio Frontline Callbacks. It represents a backend service which will return customer information to Frontline when required.

Frontline and the Conversations API

Every conversation that a Frontline app user can see and every message that a user will send or receive is coming from the Conversations API. This means that Frontline can be controlled through the Conversations REST API. For example: Conversations can easily be created, updated or deleted using the Conversations API. For more information on the Conversations API, please see the Conversations API reference guide.

Using Callbacks with Frontline

In addition to the Conversations API the Frontline app exposes a set of interfaces and Callbacks.

A Callback lets an application know what to do when a particular event occurs. For the Frontline mobile app, when a user performs an action like navigating to the “My Customers” screen — Frontline will make a network request to the configured CRM callback url to get a list of customers in JSON format. With that information the App can render it’s UI. In other words Callback is a way to get information that is missing in Conversations API, but required for Twilio Frontline to make it work. It’s an extension to Conversations API.

You can subscribe to Callbacks the same way you subscribe to Webhooks — configure a url which will process an incoming request and respond back in a certain format.

What’s Next?

Ready to get hands on with the Frontline mobile app? Head over to the Frontline Node.js Quickstart to get started!

Rate this page:

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Community Forums or browsing the Twilio tag on Stack Overflow.

        
        
        

        Thank you for your feedback!

        We are always striving to improve our documentation quality, and your feedback is valuable to us. Please select the reason(s) for your feedback or provide additional information about how we can improve:

        Sending your feedback...
        🎉 Thank you for your feedback!
        Something went wrong. Please try again.

        Thanks for your feedback!

        Refer us and get $10 in 3 simple steps!

        Step 1

        Get link

        Get a free personal referral link here

        Step 2

        Give $10

        Your user signs up and upgrade using link

        Step 3

        Get $10

        1,250 free SMSes
        OR 1,000 free voice mins
        OR 12,000 chats
        OR more