Skip to contentSkip to navigationSkip to topbar
On this page

AI Assistants Overview


(warning)

Twilio Alpha - Developer Preview

AI Assistants is a Twilio Alpha(link takes you to an external page) project that's in Developer Preview.

View the current limitations for details about feature limits during developer preview.

Twilio AI Assistants is an opinionated framework to build and host conversational AI Assistants for your customer-facing use cases. Built on large language models (LLMs) like OpenAI's GPT-4, Assistants can handle complex interactions, providing personalized and dynamic responses based on customer data.


Core components

core-components page anchor
  • Customer Memory: During conversations, Assistants create a customer profile that can be augmented, referenced, and built upon in future interactions using Twilio Segment. This allows for a more personalized and consistent customer experience.
  • Tools: Assistants can interact with other systems by making API requests through interfaces that you define. This enables seamless integration with external services and databases, extending the functionality of your AI Assistant.
  • Knowledge sources: Your Assistant can access and use unstructured knowledge sources, such as websites and databases, to provide additional context and answer user questions more effectively.
  • Channels: Assistants can integrate with various communication channels, allowing you to deploy your Assistant where your customers are most active.
  • Simulator: The Simulator is a sandbox that allows you to interact with your AI Assistant via the Twilio Console for testing, demo, and debugging purposes.
  • Human feedback: You can track human feedback on Assistant responses via the Simulator and the API.
  • Guardrails and Monitoring: Twilio AI Assistants include robust safeguards like prompt injection detection rules, and content moderation. These features ensure the trustworthiness and observability of each interaction, protecting both the user experience and your brand integrity.

Twilio AI Assistants are built on top of various Large Language Models (LLMs), including models from OpenAI and others, providing a powerful foundation for natural and dynamic conversations.


Explore the core features of Twilio AI Assistants in the sections that follow, or dive right in with our Quickstart Guide to build your first Assistant.

Base configuration

base-configuration page anchor

Assistants are highly configurable, enabling you to customize their behavior, personality, and functionality to align with your brand and specific use cases.

Setting up an AI Assistant involves configuring several components that define its identity:

  • Name: The name you assign to your AI Assistant is for identification within the Twilio Console UI. If you want your Assistant to refer to itself by name during interactions, ensure you include it in the personality prompt.
  • AI Constellation: AI Constellations define what AI models and prompt strategies your AI Assistant will use. Learn more about AI Constellations.
  • Personality prompt: This prompt sets the tone, voice, and purpose of your AI Assistant. It should be concise and aligned with your brand's voice, offering a high-level overview of what the Assistant should do. You can also define rules for your Assistant in the personality prompt like: "Never talk about competitors". Avoid overly detailed instructions; instead, focus on creating a framework that guides the Assistant's interactions. Best practices include:
    • Clear and concise language to avoid ambiguity.
    • Alignment with your brand's voice and the Assistant's intended persona.
    • Prompts that encourage user engagement, such as open-ended questions or choices for further exploration.
  • CustomerAI integration: Twilio AI Assistants can be enhanced by integrating with Twilio's Segment Profiles, making them "customer aware." This integration uses data from Twilio Segment to personalize interactions more effectively. It includes:

  • Clarity and consistency: Ensure that all configuration settings are clear and consistent with your brand's objectives.
  • Data-driven personalization: Leverage CustomerAI to make your Assistant more responsive and personalized based on real-time customer data.
  • Ongoing optimization: Regularly review and update your Assistant's configuration to adapt to changing customer needs and new model capabilities.

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.