> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/platform/platform-resources/agent-executor/migrate-conversations.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Migrate older conversations

Continue conversations started on executor 1.3 or earlier by migrating them, in the chat or through the API.

Some conversations started on executor 1.3 or earlier use an older format. On a 1.5 agent, they stay in the conversation list and open with their full history, but can't take new messages until they are migrated.

Trying to continue one shows migration guidance and doesn't add your message. The same applies when you continue it from an outside app, or answer a pending question from an older run. An older run waiting for an answer or for background document processing ends with migration guidance when it resumes on 1.5, rather than staying stuck.

## Migrate a conversation in the chat

1. Open the conversation and read its migration guidance.
2. Make sure no reply is running and nobody is adding messages.
3. Follow the guidance to start the migration.
4. Wait for the status to show that it is complete.
5. Reopen the conversation if needed, then send a new message.

After a successful migration, the conversation keeps its history and continues with its earlier context. Only the person who started the conversation, and who can view the agent, can migrate it. Permission to view or edit another person's chat doesn't replace being the person who started it.

## Migrate a conversation through the API <a href="#migrate-through-the-api" id="migrate-through-the-api"></a>

```http
POST /agent-builder/agents/:agentId/conversations/:conversationId/migrations
```

Send `{ "projectId": "<project-id>" }` in the body. The request returns at once and the migration runs in the background. Check it with a `GET` on the same path, with `projectId` as a query parameter, until the status is `Completed` or `Failed`.

| Status       | Meaning                                                           |
| ------------ | ----------------------------------------------------------------- |
| `NotStarted` | No migration of this conversation was requested in the last hour. |
| `Migrating`  | The migration is running.                                         |
| `Completed`  | The conversation can be continued.                                |
| `Failed`     | The migration stopped. Start it again.                            |

## Migration outcomes <a href="#migration-outcomes" id="migration-outcomes"></a>

| Situation                                                      | Outcome                                                                                         |
| -------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| A reply is still running                                       | Migration is refused as busy (`409 BUILDER_CONVERSATION_MIGRATION_BUSY`); the chat is unchanged |
| The migration is interrupted                                   | Its status shows `Failed`, and you can start it again                                           |
| Someone adds messages through a 1.4 agent during the migration | The migration fails rather than lose those messages; retry once activity stops                  |
| You can't migrate the conversation                             | Start a new conversation                                                                        |
| The agent stays on 1.4                                         | Older conversations continue without migrating                                                  |

***

{% columns %}
{% column width="83.33333333333334%" %}

<p align="right"><em>Maintained by</em> <mark style="color:green;">Abhishek Paul</mark><br><code>AI-assisted, human-approved</code></p>
{% endcolumn %}

{% column width="16.666666666666664%" %}

<div align="left"><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-d034645b4f8f8ee661985f5306b60ded3289653c%2Fmaintainer-abhishek-paul.png?alt=media" alt="" width="60"></div>
{% endcolumn %}
{% endcolumns %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/platform/platform-resources/agent-executor/migrate-conversations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
