---
title: "Use LLM to analyze and automatically merge entities based on sources and properties"
method: POST
path: "/entity/agent_merge"
tags: ["entity"]
---

# Use LLM to analyze and automatically merge entities based on sources and properties

`POST /entity/agent_merge`

## Request body

- AgentMergeParams
  - `dataset` string, required
  - `entity_id` string, uuid, required
  - `force_consider_entities` EntityId[]
  - `top_k` integer

## Response `200`

LLM merge execution results

- AgentMergeResponse
  - `final_entity_id` string, uuid, required
  - `merged_entities` EntityId[], required
  - `reasoning` string, nullable

---

[API](https://skmtc.dev/structifyai/apis/structify.md) · [All operations](https://skmtc.dev/structifyai/apis/structify/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/structifyai/structify/revisions/1364930b6980/schema)
