---
schema_version: "1"
id: e3517a3b8e46bff6af8720200ec39ff8f44af99c78f47fb90226e86cdb3ff07d
title: Transcripts for Android
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/messaging-in-app/guides/android-transcripts.md
canonical_url: https://developer.salesforce.com/docs/service/messaging-in-app/guide/android-transcripts.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 17294f1864d665e00c203d98b94ce45d3eabb0f9399fcf24868b930012ba578b
products:
  - Enhanced In-App Chat
  - Service Cloud Developer Content
---
# Transcripts for Android

Using the retrieve transcript API, you can access the transcript and decide how to display that information to your users. This API downloads a transcript of the conversation represented in the [`conversationClient`](https://salesforce-async-messaging.github.io/messaging-in-app-android/sdk/core/com.salesforce.android.smi.core/-conversation-client/index.html).

See the [Allow End Users to Download a Transcript of a Messaging Session](https://help.salesforce.com/s/articleView?id=service.miaw_download_transcript.htm&type=5) page to learn how to turn the save transcript feature on or off for your org.

**important:** This feature requires version 1.5.0 or later of the Enhanced In-App Chat SDK.


This article applies to the following implementations:

| UI SDK | Core SDK |
| :----: | :------: |
|        |    ✅    |


The API returns an InputStream. The host app is responsible for what to do with this InputStream. For example, you can save it to your files or share it.

To retrieve the transcript, use the `retrieveTranscript()` method on the [`conversationClient`](https://salesforce-async-messaging.github.io/messaging-in-app-android/sdk/core/com.salesforce.android.smi.core/-conversation-client/index.html) object.

```
val conversationClient = coreClient()?.conversationClient(conversationId)
val result = conversationClient?.retrieveTranscript() ?: Result.Empty
    if (result is Result. Success) {
        // Save the file to disk.
        saveToDisk(result.data)
    } else {
        // Return result or handle error.
    }
```
