API Dialplan

Overview

API Dialplan is a powerful call routing feature in Smartflo that enables real-time, dynamic call routing by integrating your business application with Smartflo using REST APIs.

Instead of relying on static IVRs or predefined call flows, Smartflo invokes your application whenever a call is received on a DID configured with an API Dialplan. Your application can analyze the incoming call details, apply custom business logic, retrieve information from CRMs or databases, and instruct Smartflo where the call should be routed.

The routing decision is entirely controlled by your application, making API Dialplan ideal for businesses that require intelligent and dynamic call handling. Typical use cases include:

  • CRM-based customer lookup
  • Lead allocation
  • Rider ↔ Driver number masking
  • Banking and account verification
  • Branch or location-based routing
  • Language and region-based routing
  • Priority customer handling
  • Voice Bot escalation
  • Skill-based agent selection
  • Time-based routing
  • Order and delivery status routing

Unlike traditional IVRs, API Dialplan allows routing decisions to be made in real time using live business data, ensuring customers are always connected to the most appropriate destination.

The following diagram illustrates the end-to-end flow of an API Dialplan:

Key Features

FeatureDescription
Dynamic Call RoutingRoute calls based on your application's response.
REST API IntegrationIntegrate with any HTTPS endpoint.
Multiple Transfer TypesRoute to Agents, Extensions, Numbers, IVRs, Queues, Voice Bots, SIP Trunks, Voice Streaming, Nested API Dialplans, and more.
Custom Request PayloadCustomize the request body sent to your API.
Custom HeadersPass authentication tokens, API keys, or custom headers.
Configurable TimeoutDefine how long Smartflo waits for your application to respond.
Failover RoutingAutomatically route calls to a backup destination if the API fails or times out.
Custom MappingDynamically map response fields to Smartflo routing parameters.
Nested DialplansChain multiple API Dialplans to implement complex routing logic.
Secure CommunicationSupports HTTPS endpoints and authenticated requests.