Knowledge

Past tickets

Bring in the tickets from the tool you used before, so your team and answerable's agent see each customer's history from day one. Imported tickets are never answered, emailed, or investigated.

How it works

There are two ways in, and both end in the same importer, with the same rules and limits:

  • Upload the export. answerable reads the file, works out which parts are tickets, customers, messages, and notes, and shows you what importing it would do before anything is written.
  • Have your own agent bring it in, for an export too large to upload or spread over many files. Your agent reads the export, converts it to answerable's import format, and sends it through the MCP server.

Each tool gets its own import, named after it. Sending the same tickets again only adds what isn't there yet: new tickets, and new messages and notes on tickets imported before. So an import that stopped partway can simply be run again, and a newer export brings in what happened since.

Uploading an export

  1. Export your tickets from the old tool, with their conversations.
  2. In answerable, open Knowledge → Past tickets and press Import tickets.
  3. Say which tool it's from, and upload the file.

Upload JSON, JSON Lines, CSV, TSV, or XML, or a zip of them, up to 50 MB. Zipped, an export can be up to 300 MB once unzipped, so zip a larger file before uploading it. A zip can hold one file per ticket, or separate files for tickets, people, and comments.

answerable reads the file, then works out how it maps onto tickets: who the customer is, who wrote each message, which messages are internal notes, and what each status means. A file already in answerable's import format is taken as it is; anything else is mapped by Claude, which only sees the file's fields and a few sample records. Every ticket is then checked the way the importer would, so the review shows exactly what importing would do:

  • how many tickets, messages, and notes would come in, and since when;
  • how answerable read the file, in a few sentences;
  • tickets that would be left out, and why, such as deleted tickets or ones without a customer email;
  • a few tickets as they'd look.

If something's off, say so in plain words under Something off? ("Solved means closed", "the agent column holds our team's replies") and the file is mapped again. Each upload or correction counts toward 20 mappings an hour per workspace.

Import runs in the background, as you, so you can leave the page. The uploaded file is deleted as soon as it's read, and what was read is deleted once it's imported, or after 7 days if it never is.

With your own agent

  1. Export your tickets from the old tool. Any format works: JSON, CSV, a folder of emails.
  2. In answerable, open Knowledge → Past tickets, press Import tickets, choose With your AI agent, and copy the instructions.
  3. Paste them into Claude Code (or another agent that can run code) opened in the export's folder, and tell it where the export is.

The agent checks a few tickets with you, then sends the rest in batches. answerable writes them exactly as sent, so the same converted tickets always import the same way.

Who can import

Only a workspace's admins can import. When an agent imports, its key or connection also needs the Import and export tickets permission (tickets:import), which is off unless you turn it on: tick it when you connect the agent, or connect it again to add it. For an API key, it's a permission on the key.

Sending tickets

With the MCP server

get_import_format returns the format, the rules below, how many tickets and messages the workspace can still import, and an upload address. import_tickets takes a batch of up to 100 tickets. Start with dryRun: true on a handful: nothing is written, and the result previews the first few tickets as they'd be imported, so you can check authors, dates, and text before sending everything.

From a script

Sending thousands of tickets through an agent's tool calls is slow. Instead, the agent can write a script that posts batches to the upload address from get_import_format, which works for an hour without the agent's own credentials. Post one batch at a time, as JSON:

Shell
curl -X POST "$UPLOAD_URL" \
  -H "Content-Type: application/json" \
  --data @batch-001.json

The body is what import_tickets takes, without the workspace, which the address already names:

JSON
{ "source": "UserVoice", "tickets": [ … ], "dryRun": false, "keepOpen": true }

The response is the same as import_tickets'. When the address expires, ask get_import_format for a new one.

With the REST API

With an API key, post batches to POST /workspaces/{workspace}/imports, and get the format from GET /workspaces/{workspace}/imports/format.

The format

Each ticket is a JSON object with its customer and its messages. Notes are messages with author: "note".

A ticket
externalIdstringnumberRequired

The ticket's id in the tool. A ticket already imported from the same source only gets the messages and notes it doesn't have yet.

subjectstringOptional

Up to 1,000 characters

statusstringOptional

Its status in the tool: open when it waits on the team, waiting when it waits on the customer, closed when it's done. Give it whenever the tool has one: open and waiting tickets stay that way unless keepOpen is false. Without it a ticket arrives closed. Leave out spam and deleted tickets.

One ofopenwaitingclosed

createdAtstringOptional

When it was opened. Defaults to its first message.

urlstringOptional

The ticket's page in the tool, linked from answerable.

Up to 2,000 characters

customerobjectRequired
messagesobject[]Required

Oldest first or in any order; they're sorted by sentAt. Only the most recent 500 are kept.

Its customer
emailstringRequired

Customers are matched by email.

Up to 320 characters

namestringOptional

Up to 200 characters

Each of its messages
externalIdstringnumberOptional

The message's id in the tool, if it has one. A message already imported with it isn't added again.

authorstringRequired

customer: the customer wrote it. team: someone on the team replied (matched to a member by email when there is one). bot: the tool's own automation replied. note: an internal note the customer never saw.

One ofcustomerteambotnote

fromobjectOptional

Who wrote it. For customer messages it defaults to the ticket's customer.

sentAtstringRequired

When it was sent, in ISO 8601 with a time zone.

textstringOptional

The body as plain text, when that's all the tool has. Give text or html. Runs of blank lines become one. HTML escapes in it (>) are unescaped, and text with HTML tags is read as html.

htmlstringOptional

The body as HTML, exactly as the tool gives it, read as an arriving email is: shown with its paragraphs and formatting (links, lists, bold), and as text to the agent. Better than text when the tool has it. Don't strip its tags or turn it into text yourself: that loses its blank lines and leaves escapes like > in the text.

messageIdstringOptional

The email's Message-ID header, when it was an email. A customer replying to that email later lands in this ticket.

Up to 998 characters

attachmentsobject[]Optional

Files, fetched in the background for messages from the last 12 months only, once, when the message is first imported. A file that can't be fetched is listed as unavailable, and sending the ticket again doesn't fetch it again.

Each of a message's attachments
urlstringRequired

A public https address answerable's servers download the file from, once, without signing in, not a path on your computer. Check that it downloads without credentials before importing.

Up to 4,000 characters

filenamestringOptional

Up to 255 characters

contentTypestringOptional

Up to 255 characters

An example

JSON
{
  "externalId": "48213",
  "subject": "Can't export to PDF",
  "status": "closed",
  "createdAt": "2025-03-02T10:14:00Z",
  "url": "https://example.uservoice.com/admin/tickets/48213",
  "customer": {
    "email": "ana@example.com",
    "name": "Ana Ruiz"
  },
  "messages": [
    {
      "author": "customer",
      "sentAt": "2025-03-02T10:14:00Z",
      "text": "Export hangs at 90% on my 40-page report.",
      "attachments": [
        {
          "url": "https://files.example.com/48213/error.png",
          "filename": "error.png"
        }
      ]
    },
    {
      "author": "team",
      "from": {
        "email": "sam@example.com",
        "name": "Sam"
      },
      "sentAt": "2025-03-02T11:02:00Z",
      "html": "<p>Thanks Ana! Could you try exporting without the embedded video?</p>"
    },
    {
      "author": "note",
      "from": {
        "email": "sam@example.com"
      },
      "sentAt": "2025-03-02T11:03:00Z",
      "text": "Known bug with embedded video, fixed in 4.2."
    },
    {
      "author": "customer",
      "sentAt": "2025-03-02T12:40:00Z",
      "text": "That worked, thank you."
    }
  ]
}

Attachments

answerable downloads each file itself, in the background, from the url given for it. So the address has to be public https that downloads without signing in:

  • A path on your computer doesn't work. If the export saved the files locally, put them somewhere with such an address first, even a temporary one, and give those addresses.
  • Check a few addresses with curl and no credentials before importing.

Each file is fetched once, when its message is first imported. One that can't be fetched shows as unavailable on its message, and sending the ticket again doesn't fetch it again, since the message is already there. To bring in files that failed, remove the import and import it again with working addresses.

What happens to imported tickets

  • Imported tickets are never investigated by the agent, emailed, or announced: no notifications, digests, or webhooks. They cost no AI credits.
  • Tickets still open in the tool (status open) arrive needing a person, and ones waiting on the customer (status waiting) wait for them, so the move loses nothing. The rest arrive closed, and so does everything when keepOpen is false.
  • Customers are matched by email. An existing customer's name isn't changed. Tickets from a customer blocked in answerable are left out.
  • Team replies and notes are matched to a member by email; otherwise the name from the tool is shown.
  • A ticket whose externalId is already imported from the same source gets only the messages and notes it doesn't have yet, matched by their externalId, or else by when they were sent and what they say. So sending tickets again adds what's new; nothing else about a ticket changes.
  • Each call takes up to 100 tickets and writes them before answering. Invalid tickets are rejected one by one with the reason; the rest are imported.
  • Give message bodies as the tool has them: HTML as html, unchanged, and only plain text as text. answerable turns HTML into text itself; tags stripped beforehand lose the email's blank lines, and leave escapes like &gt; behind.
  • Conversations keep their most recent 500 messages, and messages their first 50,000 characters.
  • Files are fetched afterwards, only for messages from the last 12 months, up to 25 MB each, from a public https address with no sign-in. Files only on your computer need such an address first. Check that a few addresses download without credentials before importing.
  • Each file is fetched once, when its message is first imported. One that can't be fetched is shown as unavailable; nothing else depends on it, and sending the ticket again doesn't fetch it again. To fix files after importing, remove the import and import again with working addresses.
  • An admin can remove everything imported from a source under Knowledge → Past tickets, and import it again. A ticket that got messages in answerable since is kept, with those messages only.

Give each ticket's status whenever the old tool has one, so tickets still open there stay open in answerable: open ones need a person, and waiting ones wait for the customer. To bring everything in closed instead, send keepOpen: false. Either way, nothing is sent to anyone.

Limits

LimitValue
Tickets in all20,000
Messages in all100,000
Tickets per batch100
Size of a batch4 MB
Messages kept per ticket (the most recent)500
Characters kept per message50,000
Files fetched for messages from the last12 months
Files per message20
Imported files in all2 GB

The totals cover all of a workspace's imports together. A ticket over them is rejected with the reason, and the rest of its batch is still imported.

Results

Every batch answers with what happened to it:

  • imported: tickets written (in a dry run, the ones that would be).
  • updated: tickets imported from the same source before that got the messages or notes they didn't have.
  • skipped: tickets already imported from the same source in full, left as they are.
  • rejected: tickets that weren't imported, each with its place in the batch (index), its externalId, and the reason, such as a missing customer email or a date without a time zone.
  • attachments: files that will be fetched in the background, and ones left out as too old.
  • remaining: how many tickets and messages the workspace can still import.

Removing an import

Under Knowledge → Past tickets, each import shows how many tickets and messages it brought and when. Remove deletes its tickets with their messages, notes, and files, and the customers it added who have no other tickets. A ticket that got messages in answerable since, such as a customer replying to an old email, is kept with those messages only. You can import again afterwards.

Exporting tickets

An admin can download every ticket in a workspace under Workspace → General → Export, as one JSON Lines file: a ticket a line, in the format above, so it can be read anywhere or imported into another workspace. Each ticket's externalId is its number in answerable, and it also has its type, and spam: true when it's spam. Notes are messages by note. Files come as links that work for 7 days. Deleted and sample tickets are left out.

Agents and scripts get the same through Export tickets, a page at a time: pass each page's nextCursor as after for the next. It needs the Import and export tickets permission and an admin, as importing does.

For agents: this page as Markdown, and every page in llms.txt.