Xpersona
C

Chat History Importer

CLAWHUB · Unverified

Import AI conversation exports (OpenAI ChatGPT and Anthropic Claude) into your agent's episodic memory. Parses export files, writes daily memory summaries, a... Skill: Chat History Importer Owner: djc00p Summary: Import AI conversation exports (OpenAI ChatGPT and Anthropic Claude) into your agent's episodic memory. Parses export files, writes daily memory summaries, a... Tags: latest:1.1.2 Version history: v1.1.2 | 2026-05-30T19:33:48.503Z | auto - Removed the redundant skill-card.md file to reduce duplication. - No functional changes to code; only documentation updates. v1.

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17akx17qd32yxnr1065qq0kdd83h2c3:chat-history-importer
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-djc00p-chat-history-importer/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

52,500 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: chat-history-importer
description: "Import AI conversation exports (OpenAI ChatGPT and Anthropic Claude) into your agent's episodic memory. Parses export files, writes daily memory summaries, and deduplicates on re-runs. Trigger phrases: import chat history, ingest conversation export, import chatgpt export, import claude export, load AI conversation history."
metadata: {"clawdbot":{"emoji":"📥","requires":{"bins":["python3"]},"env":[],"os":["linux","darwin","win32"],"homepage":"https://clawhub.com/djc00p/chat-history-importer"}}
---

# Chat History Importer

Import years of AI conversations into searchable episodic memory. Parse ChatGPT and Claude exports and create dated daily memory files your agent can search and reference. Perfect for onboarding new agents with rich historical context or preserving important conversations for future recall. Pairs well with the [chat-learnings-extractor](https://clawhub.ai/djc00p/chat-learnings-extractor) skill for a complete conversation analysis workflow.

## Quick Start

1. Export from OpenAI: Settings → Data Controls → Export data → `conversations.json`
2. Export from Anthropic: Settings → Privacy → Export data → `conversations.json` in zip
3. Dry run first: `python3 scripts/batch.py --dir ~/Downloads/chat_exports --dry-run`
4. Import: `python3 scripts/batch.py --dir ~/Downloads/chat_exports`

## Key Concepts

- **Auto-detection:** Identifies OpenAI vs Anthropic format automatically — no flags needed
- **Episodic memory:** Writes daily summaries to `memory/episodic/YYYY-MM-DD.md`
- **Deduplication:** Chat IDs tracked — re-running the same export never creates duplicates
- **OPENCLAW_WORKSPACE:** Set this env var to point imports to the right agent workspace
- **Human speaker names:** Memories are written as `Kael:` / `Deonte:` instead of `assistant:` / `user:` — auto-read from `IDENTITY.md` and `USER.md` in the workspace, making imported history feel like recalled conversations rather than raw log files

## Common Usage

```text
# Dry run — preview what would be imported without writing anything
python3 scripts/batch.py --dir ~/Downloads/chat_exports --dry-run

# Import all conversations
python3 scripts/batch.py --dir ~/Downloads/chat_exports

# Import only conversations since a date
python3 scripts/batch.py --dir ~/Downloads/chat_exports --since 2025-01-01

# Force a specific format (auto-detects by default)
python3 scripts/batch.py --dir ~/Downloads/chat_exports --format anthropic

# Override speaker names if IDENTITY.md / USER.md aren’t set up yet
python3 scripts/batch.py --dir ~/Downloads/chat_exports --agent-name "Ayo" --user-name "Deonte"

# Verbose — show message count + first user message per chat
python3 scripts/batch.py --dir ~/Downloads/chat_exports --dry-run --verbose
```

**Tip:** Use `--dry-run --verbose` first to see message counts and previews — great for identifying meaty conversations worth deeper analysis.

## References

- `references/export-formats.md` — Detailed OpenAI and 

_meta.json

{
  "ownerId": "kn75k4jwpn9qgy3pk38e93gkt982zqmg",
  "slug": "chat-history-importer",
  "version": "1.1.2",
  "publishedAt": 1780169628503
}

references/export-formats.md

# Supported Export Formats

This skill supports OpenAI ChatGPT and Anthropic Claude conversation exports.

## OpenAI ChatGPT Export

1. Go to **Settings → Data Controls → Export data**
2. Download your data as ZIP
3. Extract `conversations.json`

**Format:**

```json
[
  {
    "id": "chat_abc123...",
    "title": "Some topic",
    "create_time": 1712345678.123,
    "messages": [
      {
        "role": "user" | "assistant" | "system",
        "content": { "parts": [ "text..." ] } | "text...",
        "create_time": 1712345678.123
      }
    ]
  }
]
```

## Anthropic Claude Export

1. Go to **Settings → Privacy → Export data**
2. Download your data as ZIP
3. Extract `conversations.json`

**Format:**

```json
[
  {
    "uuid": "conv_abc123...",
    "name": "Conversation title",
    "created_at": "2025-01-15T10:30:00Z",
    "chat_messages": [
      {
        "sender": "human" | "assistant",
        "text": "message content",
        "created_at": "2025-01-15T10:30:00Z"
      }
    ]
  }
]
```

## Auto-Detection

The skill auto-detects format by inspecting the JSON structure. You can also specify `--format openai` or `--format anthropic` explicitly.

## Processing

Both formats are normalized to:

```json
{
  "id": "source_uuid",
  "title": "chat title",
  "date": "YYYY-MM-DD",
  "messages": [
    {
      "role": "user" | "assistant",
      "content": "text",
      "timestamp": "ISO8601"
    }
  ]
}
```

skill-card.md

## Description:

Imports OpenAI ChatGPT and Anthropic Claude conversation exports into an agent's episodic memory, writing dated daily summaries and deduplicating repeated imports.

This skill is ready for commercial/non-commercial use.

## Publisher:

[djc00p](https://clawhub.ai/user/djc00p)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent users use this skill to import trusted ChatGPT or Claude export files into searchable episodic memory for onboarding, recall, and continuity across agent sessions.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Chat exports may contain secrets, personal data, client information, or proprietary work.

Mitigation: Use only trusted exports, redact sensitive content where possible, run --dry-run first, and inspect generated memory files after import.

Risk: Imported content becomes persistent agent memory and may include excessive or misleading historical context.

Mitigation: Narrow imports with --dir and --since, set OPENCLAW_WORKSPACE intentionally, and review generated episodic files before relying on them.

## Reference(s):

- [Export Formats Reference](references/export-formats.md)
- [ClawHub Skill Page](https://clawhub.ai/djc00p/skills/chat-history-importer)
- [ClawHub Metadata Homepage](https://clawhub.com/djc00p/chat-history-importer)
- [Related Chat Learnings Extractor](https://clawhub.ai/djc00p/chat-learnings-extractor)

## Skill Output:

**Output Type(s):** [markdown, shell commands, configuration, guidance]

**Output Format:** [Markdown episodic memory files with terminal status text and inline shell command examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Writes dated entries under memory/episodic and uses chat IDs to skip duplicate imports on rerun.]

## Skill Version(s):

1.1.2 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Chat History Importer and adjacent AI workflows.