Mobile
This feature enables you to integrate Copilot into your mobile application, providing AI-powered capabilities.
Generate a Token
- Login to the Copilot Platform.
 - In the left sidebar, click on the Copilot you want to integrate.
 
- Click Deploy tab.
 - In the Mobile widget, click Setup Now.
 - Move the sliders to activate/deactivate the following features:
- Audio Transcription: Enable this feature to convert voice input into text automatically.
 - AI Voice Call: Allows users to initiate calls directly from the app.
 
noteEnabling the AI Voice Call feature consumes platform credits.
- Logged in Users Only: Restricts access to authenticated users by requiring user data to be passed through the setUser or SDK initialize method.
 - Resume Conversation On Open: Restores the user's previous conversation or starts a new one based on the selected configuration.
 
 
- Click Save. A token will be generated.
 
- Copy and save the token to configure the SDK in your mobile app.
 
- Replace 
YOUR_COPILOT_TOKENin the configuration with the token you have saved to initialize the SDK in your mobile app: 
val copilotConfig = CopilotConfig(
          token = "YOUR_COPILOT_TOKEN", // Replace with your actual Copilot token
          user = userData, // Pass the user data
          appearance = appearance // Pass the appearance settings
      )