Skip to main content
Enable intelligent conversational AI capabilities in your React Native app using CometChat UIKit v5 with AI Agent integration:
  • AI Assistant Chat History
  • Chat History Management
  • Contextual Responses
  • Agent Detection
  • Seamless Handoffs
Transform your chat experience with AI-powered assistance that provides intelligent responses and offers seamless integration with your existing chat infrastructure.
1:1 conversations only. AI Agents currently respond only in one-on-one conversations between an end user and the agent user. They do not respond to messages sent in groups, even if the agent user is added as a member or owner. Group support is on the roadmap — share your use case on feedback.cometchat.com.

Overview

Users can interact with AI agents through a dedicated chat interface that:
  • Provides intelligent responses based on conversation context.
  • Maintains chat history for continuity.
  • Seamlessly integrates with your existing user chat system.
The AI Agent chat interface provides a familiar messaging experience enhanced with AI capabilities, accessible through your main chat flow or as a standalone feature.

Prerequisites

  • React Native project with @cometchat/chat-uikit-react-native and @cometchat/chat-sdk-react-native installed.
  • Valid CometChat App ID, Region, and Auth Key configured via CometChatUIKit.init().
  • User logged in with CometChatUIKit.login().
  • AI Agent configured in your CometChat dashboard.

Components

Integration Steps

Step 1 - Screen Setup

Create the AI Assistant chat screen with proper navigation and component configuration.

Step 2 - Navigation Setup

Configure React Navigation to handle AI Assistant chat screens.

Step 3 - Theme Customization

Define custom themes for the message list and composer to differentiate AI agent chats.

Step 4 - AI Assistant Tools Configuration

Configure AI Assistant tools and suggested messages for an enhanced user experience.

Step 5 - Create AI Assistant Chat History Screen

Create a screen to host the CometChatAIAssistantChatHistory component and handle its interactions.

Step 6 - Launching AI Chat

Create navigation functions to launch AI Assistant chat from your main application.

Implementation Flow Summary

Customization Options

  • Custom AI Assistant Empty Chat View: Customize the empty state view using emptyChatGreetingView prop.
  • Streaming Speed: Adjust AI response streaming speed via streamingSpeed prop.
  • AI Assistant Suggested Messages: Create custom list of suggested messages using aiAssistantSuggestedMessages prop.
  • AI Assistant Tools: Set tools for the AI agent using aiAssistantTools prop.

Feature Matrix

React Native AI Sample

Explore this feature in the CometChat React Native Sample: GitHub → React Native Sample

React Native UI Kit

Learn more about React Native UI Kit components: GitHub → React Native UIKit

Next Steps

Message List

Display and manage messages in a conversation

Message Composer

Compose and send messages with rich input options

All Guides

Browse all feature and formatter guides

Components Overview

Explore all available components