API

Sections

Theme switcher

Post-Sales AI Bot

Build your AI post-sales support chatbot without the complexity of creating the AI yourself. This API provides the core intelligence to understand user queries about bookings and deliver answers. You design the chatbot's user experience, and our API does the heavy lifting.

Please note that this is an enterprise API feature. Reach out to your Partnership Manager for more information about unlocking this and other advanced features.

Core Functionality

The Post-Sales AI Bot facilitates the automation of Level 1 (L1) post-sales support inquiries for customers who have made ticket purchases via the platform. It utilizes enriched booking data and an AI backend to address common customer questions.

The bot is designed to provide initial support for general questions related to a specific booking. It operates in multiple languages and serves as a generic, first-level support mechanism for individual bookings, independent of specific carriers or retailers.

Features

The API enables the AI bot to handle the following types of queries for a given Distribusion booking number:

  • Answer to general booking inquiries in multiple languages
  • Retrieve booking details using the Distribusion booking number
  • Identify departure or arrival station locations
  • Provide information on applicable luggage policies
  • Supply details regarding booking cancellation information
  • Offer relevant hotline support phone numbers and email addresses
  • Act as the initial point of contact for booking-specific questions
  • Provide an answer in full at once or as a stream to emulate chatting

Out of Scope

The following are outside the current capabilities of the Post-Sales AI Bot:

  • Support using booking IDs other than the DT booking number (e.g., carrier-specific booking numbers).
  • Cancel bookings
  • Amend or modify bookings
  • Conduct investigations
  • Check other bookings for the same user and provide information on other trips
  • Support carrier-specific or retailer-specific support protocols
  • Store or make accessible historical chat data (each interaction initiates a new chat session)

Sample Flow

  1. Initiate the chat by providing the booking details of the passenger through the /post-sales-bot/chat-init endpoint.
  2. Capture the conversation_id and use for all requests to the /post-sales-bot/chat endpoint.
  3. For a more chat like experience emullating a user typing the answer, use the /post-sales-bot/chat/stream endpoint.

API Examples

Sample Request to /post-sales-bot/chat-init

JSON
{ "booking_number": "TABYCE", "last_name": "Doe", "email": "jonh.doe@email.com" }

Sample Response from /post-sales-bot/chat-init

JSON
{ "conversation_id": "65cb4385-7d19-4896-91b5-76c707e11fed", "expires_at": "2025-05-13T08:27:48.868631Z" }

For more samples responses, check the /post-sales-bot/chat-init endpoint page.

Sample Request to /post-sales-bot/chat

JSON
{ "conversation_id": "65cb4385-7d19-4896-91b5-76c707e11fed", "text": "Can I bring any luggage on my trip?" }

Sample Response from /post-sales-bot/chat

JSON
{ "text": "Yes, you can bring luggage on your trip. The allowance includes:\n\n* 2 big luggage items: each weighing up to 25.0kg with dimensions 80x50x30.\n* 2 hand luggage items: each weighing up to 10.0kg with dimensions 50x40x25." }

For more samples responses, check the /post-sales-bot/chat endpoint page.

Was this section helpful?

What made this section unhelpful for you?

On this page
  • Post-Sales AI Bot
View as Markdown

Ask an AI

Open in ChatGPTOpen in ClaudeOpen in Perplexity

Code with AI

Open in Copilot