Change history and restore

See what changed in your configuration, who changed it and why, then compare versions and roll back.

Octocom records the changes people and AI agents make to your configuration, with who made each one and why. You can review an agent's work, compare versions and roll back a mistake. Three layers work together:

  • Change history records every change made through Copilot or MCP, and changes to key resources made in the dashboard or REST API, with the author, the session and an optional note explaining why.
  • Versions keep the full content of workflows, articles, bot rules, code and other key resources after every save. You can compare and restore any version.
  • Archives replace deletion for most resources. An archived resource keeps its configuration and, in most cases, can be restored.

All of it is available to Copilot and to any MCP client. Versions of the most-edited resources can also be viewed and restored in the dashboard.

Audit what changed

Ask in plain language ("What changed on the returns workflow since Monday, and why?"), or call the tools directly.

List changes

list_configuration_changes returns changes newest first. Filter by resource, by referenced ID or by session:

{
  "organizationId": "YOUR_ORGANIZATION_ID",
  "entityType": "workflow",
  "entityId": "WORKFLOW_ID",
  "limit": 20
}
ArgumentMeaning
entityTypeThe resource type, such as workflow, article, botRule or recurringJob. action matches both Python and API actions. toolExecution selects completed write-tool runs.
entityIdThe resource ID. Also finds write-tool runs that referenced that ID.
sessionIdA Copilot session or MCP work session: every change made for that objective.
limit1 to 100, default 30. Page with offset and the returned nextOffset.
includeLegacyDefault true: also include older versions that have no recorded author or session. Their attribution fields are empty.

Each entry carries the operation, the tool, the optional change note, the author and client, the Copilot session and turn or the MCP work session, and references to the versions before and after the change.

Read one change

get_configuration_change takes a change ID or a version ID. For a resource change it returns the before and after state. For a write-tool run it returns the tool and the IDs it referenced, without claiming a diff. Credential fields of API actions are left out. This tool only reads; it never restores anything.

Both tools need the Read automations and code permission (automations:read), because history can name code and settings.

Find out why

  • The session. A change made in Copilot or an MCP work session links to that session. get_session returns its goal, session notes and other changes. See Work sessions and context notes.
  • Copilot sessions. get_copilot_session_context returns a Copilot session's author, time and recorded changes. The conversation itself stays private to its owner unless they share a link.
  • Context notes. list_context_notes with an entityRef finds lasting decisions linked to the resource.

What change history covers

Change history records every write made through Copilot or MCP. Changes made in the dashboard or through the REST API are recorded for:

  • versioned resources: workflows, articles, bot rules, Python and API actions, condition providers, recurring jobs, HTTP endpoints, phone line routers and Python modules
  • email inbox settings, handoff settings, writing style, system prompt settings (including the Python prompt section), follow-up settings, CSAT settings, spam filter instructions and Google Sheets connections
  • assignment settings, assignment rules, capacity profiles and help desk settings changed through the REST API

Other dashboard edits, such as changes to tags, macros or web chat settings, are recorded in the user action audit. An empty change history result means no change was recorded there, so check the audit before concluding that nothing changed.

Compare versions

ResourceList versionsRead or compare
Workflowlist_workflow_versionsget_workflow_version, diff_workflow_versions
Articlelist_article_versionsget_configuration_change with a version ID
Bot rulelist_bot_rule_versionsget_configuration_change with a version ID
Python or API actionlist_action_versionsget_configuration_change with a version ID
Condition providerlist_condition_provider_versionsget_configuration_change with a version ID
Recurring joblist_recurring_job_versionsget_configuration_change with a version ID
HTTP endpointlist_http_endpoint_versionsget_configuration_change with a version ID
Phone line routerget_phone_line_router (includes its last 10 versions)get_configuration_change with a version ID
Product sync parserlist_product_sync_parser_versionsget_configuration_change with a version ID
Bot QA checklist_bot_qa_check_revisionsEach revision's full wording. Reapply one with update_bot_qa_check
Human QA scorecardlist_human_qa_scorecard_revisionsEach revision's full content

list_workflow_versions shows who made each change, when, and a one-line summary. diff_workflow_versions returns a line-level diff between two versions, including added, removed, edited and reordered variants:

{
  "organizationId": "YOUR_ORGANIZATION_ID",
  "workflowId": "WORKFLOW_ID",
  "fromVersion": 7,
  "toVersion": 9
}

Omit both version numbers to compare the latest version with the one before it. This is the quickest way to check what a change you just made actually did.

Roll back

Restore a version

Pass a version ID to the matching restore tool:

ResourceRestore tool
Workflowrestore_workflow_version
Articlerestore_article_version
Bot rulerestore_bot_rule_version
Python or API actionrestore_action_version
Condition providerrestore_condition_provider_version
Recurring jobrestore_recurring_job_version
HTTP endpointrestore_http_endpoint_version
Phone line routerrestore_phone_line_router_version
Product sync parserrestore_product_sync_parser_version

Restoring saves the old content as a new version marked as restored, so history stays complete and a restore can itself be undone. The restore tools for workflows, articles, bot rules, actions, condition providers, recurring jobs, HTTP endpoints and phone line routers also bring back a resource that was archived.

Restore an archived resource

Most removal tools are named archive_*: they keep the resource and its history instead of deleting it. How you bring one back depends on the resource.

  • Versioned resources. list_archived_workflows, list_archived_articles, list_archived_bot_rules, list_archived_actions, list_archived_condition_providers and list_archived_recurring_jobs return each archived resource with its latest version ID. Pass that ID to the restore tool above. For phone line routers, list_phone_line_routers returns the latestVersionId of archived routers. For HTTP endpoints, list_http_endpoint_versions also works on an archived endpoint.
  • Other resources. list_archived_configuration_resources takes a resourceType and returns archived IDs, labels, archive dates and the tool that restores them. It covers organization secrets, comment workflows, review workflows, data collection prompts, event handlers, sidebar widgets, sidebar widget actions, email rules, webhooks, search redirects, merchandising rules, knowledge documents, web chat configurations, virtual try-on configurations and macros. Restore with the matching tool, for example restore_webhook or restore_macro, passing resourceId.
  • Context notes. restore_context_note brings back an archived context note.
  • QA checks and scorecards. Archiving a Bot QA check or a Human QA scorecard is final, and its past results are kept. To pause one, turn it off instead: set_bot_qa_check_enabled, or update_human_qa_scorecard with enabled: false.

A restored resource resumes its previous enabled or live state immediately, so review it first. If an active resource now uses the same name, slug or trigger, the restore is refused: rename or archive the active one first. Restore a sidebar widget before restoring one of its actions.

A few tools delete permanently, for example delete_metric_report. Their descriptions say so.

In the dashboard

Workflows, custom actions, custom conditions, knowledge articles and bot rules have a View history option. It lists every version with its change type, author and time, and a Restore button. Workflow versions show what changed in each version. HTTP endpoints show a Version history section in the endpoint editor, with Restore this version.

The REST API lists and restores versions of workflows, articles and bot rules, restores phone line router versions, and restores archived knowledge documents.

What a restore cannot undo

Restoring configuration changes how Octocom behaves from now on. It does not undo what already happened: messages sent to customers, conversations closed or handed off, and calls that actions made to external systems. Use test conversations and the test_* tools before changes reach customers, and read-only connections for audits.

On this page