Exemplos JSON de Chat

Exemplos JSON para transcricoes de chat multirrole

📋 Mensagens de IA (estilo OpenAI)

🟢 simple

Formato comum com system, user e assistant

{
  "model": "gpt-5.2-codex",
  "messages": [
    {
      "role": "system",
      "content": "You are a customer support assistant. Be brief and friendly."
    },
    {
      "role": "user",
      "content": "Can you summarize my last invoice and confirm the due date?"
    },
    {
      "role": "assistant",
      "content": "Your last invoice is $420 for the Pro plan. The due date is Feb 20, 2026."
    },
    {
      "role": "user",
      "content": "Thanks. Please send a payment link."
    },
    {
      "role": "assistant",
      "content": "Here is your link: https://pay.example.com/invoice/INV-2041"
    }
  ],
  "createdAt": "2026-01-20T09:14:22Z"
}

📋 Thread do Slack em JSON

🟢 simple

Conversa estilo Slack com author, text e timestamp

{
  "workspace": "Acme",
  "channel": "#product",
  "threadId": "1697.321",
  "messages": [
    {
      "author": "user",
      "authorName": "Nina",
      "text": "Do we have the rollout checklist for v2.3?",
      "timestamp": "2026-01-10T09:12:00Z"
    },
    {
      "author": "assistant",
      "authorName": "ReleaseBot",
      "text": "Yes. I pinned it in the launch channel and added a QA sign-off step.",
      "timestamp": "2026-01-10T09:13:18Z"
    },
    {
      "author": "user",
      "authorName": "Nina",
      "text": "Great, please paste the link here.",
      "timestamp": "2026-01-10T09:14:01Z"
    }
  ]
}

📋 Exportacao do WhatsApp em JSON

🟢 simple

Exportacao do WhatsApp com speaker, message e time

{
  "chat": "Family Group",
  "timezone": "Asia/Singapore",
  "messages": [
    {
      "speaker": "user",
      "displayName": "Lina",
      "message": "Landing at 7pm, can someone pick me up?",
      "time": "2026-01-11 19:02"
    },
    {
      "speaker": "assistant",
      "displayName": "Dad",
      "message": "I can be there at 7:30. Gate 3?",
      "time": "2026-01-11 19:05"
    },
    {
      "speaker": "user",
      "displayName": "Lina",
      "message": "Gate 3 works. Thanks!",
      "time": "2026-01-11 19:06"
    }
  ]
}

📋 Canal do Discord em JSON

🟢 simple

Registro Discord com authorName, content e timestamp

{
  "server": "Studio",
  "channel": "#design-review",
  "messages": [
    {
      "author": "user",
      "authorName": "Ari",
      "content": "Uploaded the new hero mockups in Figma.",
      "timestamp": "2026-01-13T19:40:00Z"
    },
    {
      "author": "assistant",
      "authorName": "Kai",
      "content": "Reviewing now. I like the left layout; can we soften the gradient?",
      "timestamp": "2026-01-13T19:42:12Z"
    },
    {
      "author": "user",
      "authorName": "Ari",
      "content": "Yes, I will adjust the gradient and re-share.",
      "timestamp": "2026-01-13T19:43:04Z"
    }
  ]
}

📋 Sessao de chat JSON (fragments)

🟢 simple

Exportacao com chat_session e chat_messages/fragments

{
  "chat_session": {
    "id": "13a93b44-1346-46a9-8e9e-167f2c2c61f9",
    "title": "Go语言const中iota使用解析",
    "title_type": "SYSTEM",
    "updated_at": 1766331666.982
  },
  "chat_messages": [
    {
      "message_id": 1,
      "role": "USER",
      "inserted_at": 1766331613.8209999,
      "fragments": [
        {
          "id": 1,
          "type": "REQUEST",
          "content": "const (
    ERR1 = iota + 1
    ERR2
    ERR25 = "ha"
    ERR3
    ERR4 = iota
)"
        }
      ]
    },
    {
      "message_id": 2,
      "parent_id": 1,
      "role": "ASSISTANT",
      "inserted_at": 1766331613.833,
      "fragments": [
        {
          "id": 1,
          "type": "THINK",
          "content": "(internal reasoning omitted)"
        },
        {
          "id": 2,
          "type": "RESPONSE",
          "content": "输出:1 2 ha ha 4"
        }
      ]
    }
  ]
}

📋 Conversacao DeepSeek JSON

🟢 simple

Exportacao com participants e arrays de content

{
  "conversationId": "ds_9451",
  "createdAt": "2026-02-02T09:12:00Z",
  "participants": [
    { "id": "u_88", "role": "user", "displayName": "Kai" },
    { "id": "a_03", "role": "assistant", "displayName": "DeepSeek" }
  ],
  "messages": [
    {
      "id": "m1",
      "role": "system",
      "sentAt": "2026-02-02T09:12:00Z",
      "content": [
        { "type": "text", "text": "You are a concise coding assistant." }
      ]
    },
    {
      "id": "m2",
      "role": "user",
      "sentAt": "2026-02-02T09:12:20Z",
      "content": [
        { "type": "text", "text": "Explain Go iota with a short example." }
      ]
    },
    {
      "id": "m3",
      "role": "assistant",
      "sentAt": "2026-02-02T09:12:42Z",
      "content": [
        { "type": "text", "text": "iota is an auto-incrementing counter in const blocks. Example: const (A=iota; B; C) gives 0,1,2." }
      ]
    }
  ]
}

📋 Mensagens Kimi JSON

🟢 simple

Formato Kimi com blocks[].text.content

{
  "messages": [
    {
      "id": "m-001",
      "role": "user",
      "status": "MESSAGE_STATUS_COMPLETED",
      "blocks": [
        {
          "text": {
            "content": "财务专用pdf图片手写体,入库识别等功能,带招书等功能?"
          }
        }
      ],
      "createTime": "2026-02-03T11:05:35.082235Z"
    },
    {
      "id": "m-002",
      "role": "assistant",
      "status": "MESSAGE_STATUS_COMPLETED",
      "blocks": [
        {
          "text": {
            "content": "我理解您需要一套财务专用PDF识别与入库系统,并包含招标书解析模块。"
          }
        }
      ],
      "createTime": "2026-02-03T11:05:35.812641976Z"
    }
  ]
}

📋 Transcricao de Chat Multirrole em JSON

🟡 intermediate

Conversa com funcoes system, user, assistant e tool, com timestamps e metadados

{
  "conversationId": "conv_28b9f5d1",
  "createdAt": "2026-01-15T10:05:12Z",
  "status": "open",
  "participants": [
    { "id": "u_104", "role": "user", "displayName": "Avery" },
    { "id": "a_001", "role": "assistant", "displayName": "Elysia" }
  ],
  "messages": [
    {
      "id": "msg_001",
      "role": "system",
      "sentAt": "2026-01-15T10:05:12Z",
      "content": [
        { "type": "text", "text": "You are a travel planning assistant. Keep responses concise." }
      ],
      "metadata": { "priority": "high", "locale": "en-US" }
    },
    {
      "id": "msg_002",
      "role": "user",
      "sentAt": "2026-01-15T10:06:03Z",
      "content": [
        { "type": "text", "text": "Plan a 2-day Tokyo itinerary focused on food and museums." },
        { "type": "attachment", "name": "preferences.json", "mimeType": "application/json" }
      ],
      "metadata": { "timezone": "Asia/Tokyo", "budget": "mid" }
    },
    {
      "id": "msg_003",
      "role": "assistant",
      "sentAt": "2026-01-15T10:06:20Z",
      "content": [
        { "type": "text", "text": "Got it. I will draft a 2-day plan and include food highlights." }
      ],
      "replyTo": "msg_002",
      "metadata": { "model": "gpt-5.2-codex" }
    },
    {
      "id": "msg_004",
      "role": "tool",
      "name": "search_places",
      "sentAt": "2026-01-15T10:06:35Z",
      "content": [
        {
          "type": "json",
          "data": {
            "query": "Tokyo museums + food markets",
            "results": [
              { "name": "Tokyo National Museum", "area": "Ueno" },
              { "name": "teamLab Planets", "area": "Toyosu" },
              { "name": "Tsukiji Outer Market", "area": "Chuo" }
            ]
          }
        }
      ]
    },
    {
      "id": "msg_005",
      "role": "assistant",
      "sentAt": "2026-01-15T10:07:10Z",
      "content": [
        {
          "type": "text",
          "text": "Day 1: Ueno (Tokyo National Museum) + Ameyoko food stalls. Day 2: Tsukiji Outer Market + teamLab Planets. Want reservations added?"
        }
      ],
      "replyTo": "msg_004"
    }
  ],
  "usage": { "inputTokens": 512, "outputTokens": 144 }
}