Skip to content

Google / Gemini

The mappings below reflect observed export structures verified against community-verified export data and Google Takeout documentation. Google does not natively support PAM. These mappings are best-effort compatibility guidance. Provider export formats may change without notice. Importers MUST be versioned.

  1. Go to takeout.google.com
  2. Deselect all, then select My Activity → Gemini Apps
  3. Click “Multiple formats” and change the format from HTML to JSON
  4. Request the export and download the resulting archive
  5. The relevant file is at Takeout/My Activity/Gemini Apps/MyActivity.json
FileDescription
Takeout/My Activity/Gemini Apps/MyActivity.jsonSingle JSON array of activity events

The Takeout format is an activity log, not a conversation archive. Each entry records a single interaction with a timestamp and conversation URL. To reconstruct full conversations, an importer must group entries by conversation ID ( extracted from the titleUrl field) and sort by time.

Each array element is a single prompt-response exchange:

Provider fieldPAM fieldTransform
titleUrlprovider.conversation_idextract conversation ID from URL path (/app/c/<id>)
titleextract from first user message per conversation, or null
timecreated_atdirect (already ISO 8601)
provider.namehardcode "gemini"

Message mapping — variant A (details array)

Section titled “Message mapping — variant A (details array)”

Some exports use a details array of named key-value pairs:

{
"header": "Gemini",
"title": "Used Gemini Apps",
"titleUrl": "https://gemini.google.com/app/c/<conversation_id>",
"time": "2024-02-17T22:05:10.123Z",
"products": ["Gemini Apps"],
"details": [
{ "name": "Request", "value": "User prompt here" },
{ "name": "Response", "value": "Gemini response here" }
]
}
Provider fieldPAM fieldTransform
details[].valuecontent.textdirect
details[].namerole"Request""user", "Response""assistant"

Message mapping — variant B (userInteractions array)

Section titled “Message mapping — variant B (userInteractions array)”

Other exports use a userInteractions array with serialized JSON strings:

{
"header": "Gemini",
"title": "Used Gemini Apps",
"titleUrl": "https://gemini.google.com/app/c/<conversation_id>",
"time": "2024-01-26T12:45:12.686Z",
"products": ["Gemini Apps"],
"userInteractions": [
{
"userInteraction": {
"endpoint": 2,
"request": "[{...}]",
"response": "[{...}]"
}
}
]
}
Provider fieldPAM fieldTransform
userInteractions[].userInteraction.requestcontent.textparse JSON string, extract text
userInteractions[].userInteraction.responsecontent.textparse JSON string, extract text
rolerequest"user", response"assistant"

PAM import support for Gemini is provided by official SDK Converters maintained by the PAM project. See the Importing Guide for general import instructions and the Provider Overview for the full compatibility matrix.