---
title: "AI Assistant on React Native"
canonical_url: "https://www.nutrient.io/guides/react-native/ai-assistant/"
md_url: "https://www.nutrient.io/guides/react-native/ai-assistant.md"
last_updated: "2026-05-25T09:22:39.267Z"
description: "Integrate AI chat capabilities into your React Native app with Nutrient AI Assistant. Summarize, translate, and find information effortlessly in your documents."
---

# AI Assistant on React Native

Nutrient AI Assistant brings AI chat capabilities to your documents, enabling users to ask questions in natural language and get answers without sifting through pages of text. AI Assistant is ideal for summarizing, translating, and finding certain information in documents. Users can tap links in the chat to jump to the part of the document information came from.

To use this feature, run [Nutrient AI Assistant](https://www.nutrient.io/guides/ai-assistant.md) on your server.![AI Assistant](@/assets/guides/ios/ai-assistant/ai-assistant.png)

## Setting up AI Assistant on React Native

To get started, either implement AI Assistant in your own app by following the steps below, or check out the [`AIAssistant` example](https://github.com/PSPDFKit/react-native/tree/master/samples/Catalog/examples/AIAssistant.tsx) in our [catalog example project](https://www.nutrient.io/guides/react-native/prebuilt-solutions/example-projects.md#pspdfkit-catalog). In the case of the latter, you’ll only need to follow step 1, as it already implements steps 2 and 3.

1. Set up [Nutrient AI Assistant](https://www.nutrient.io/guides/ai-assistant.md) on your server, or run the server locally. The easiest way to get started is to clone our [AI Assistant demo repository](https://github.com/PSPDFKit/ai-assistant-demo) and follow the instructions in the README.

2. Set an [`AIAssistantConfiguration`](https://www.nutrient.io/api/react-native/AIAssistantConfiguration.html) in your main [`PDFConfiguration`](https://www.nutrient.io/api/react-native/PDFConfiguration.html). This configuration specifies the URL where your AI Assistant server can be accessed, a JSON Web Token (JWT) for authentication, a session identifier, and an optional user identifier. It’s best practice for the JWT to be generated by your own server; for more details, refer to [generate a JWT](https://www.nutrient.io/guides/ai-assistant/viewer-integration/client-authentication/generate-a-jwt.md) in our AI Assistant server guides. You may have one session for each document if you want to restore the chat history each time. You could have multiple sessions per document if multiple users access the same document in your app on one device.

3. Add the [`AI_ASSISTANT_BUTTON_ITEM`](https://www.nutrient.io/api/react-native/Toolbar.html#.DefaultToolbarButton) to your toolbar using the [`Toolbar`](https://www.nutrient.io/api/react-native/Toolbar.html) prop on your `NutrientView`. When users tap this button, the document data will be uploaded to AI Assistant on your server, and the chat UI will be presented.

4. Android only: In your native application’s `Activity`, implement the [`AiAssistantProvider`](https://www.nutrient.io/api/android/nutrient/io.nutrient.domain.ai/-ai-assistant-provider/index.html) interface and return the AI Assistant instance using the helper method provided:

```kotlin

import io.nutrient.domain.ai.AiAssistant;
import io.nutrient.domain.ai.AiAssistantProvider;
import com.pspdfkit.react.SessionStorage;

class YourActivity : AppCompatActivity(), AiAssistantProvider {
    override fun getAiAssistant(): AiAssistant {
        return SessionStorage.getAiAssistant()
    }
}

```
---

## Related pages

- [Explore powerful demos of the React Native PDF library](/guides/react-native/demo.md)
- [Download our React Native library](/guides/react-native/downloads.md)
- [Edit PDFs in React Native](/guides/react-native/editor.md)
- [Changelog for React Native](/guides/react-native/changelog.md)
- [React Native PDF library](/guides/react-native.md)
- [Knowledge base](/guides/react-native/kb.md)
- [React Native guides: Integrate our PDF library](/guides/react-native/intro.md)
- [Upgrade and migration guides](/guides/react-native/upgrade.md)
- [Troubleshooting](/guides/react-native/troubleshoot.md)
- [Sign PDFs in React Native](/guides/react-native/signatures.md)

