Skip to main content
← Guides

Merge multiple tables

Prompts & workflows · Prompt case

Output a merged table and conflict log; conflicts are not silently overwritten.

Prompt effect has not been tested.

A prompt is a re-runnable template, not a promise of results. Changing the model, version or input can change the outcome. Use the checkpoints on this page to verify it yourself, and treat the official sources as evidence of mechanism rather than a guarantee of effect.

Task and inputs

Output a merged table and conflict log; conflicts are not silently overwritten. Inputs: Multiple tables, key fields, merge rules, and priority.

The prompt

Merge tables on {key}. Rules: {rules}. Output merged[] and conflicts[]. When same-key fields disagree, keep all candidate values and record source table and field in conflicts; do not silently overwrite by priority unless the rules explicitly authorise it.

Replace {field} placeholders with the current inputs before running.

Expected output shape

merged[] and conflicts[] with sources and candidate values.

Checkpoints

  • Keys are unique or conflicts recorded.
  • Every overwrite has rule authorisation.
  • Row count equals the union of input keys.

Failure branches

  • Wrong key: check field meanings first.
  • Too many conflicts: define rules manually before rerunning.

Sources and limits

This site has not tested the effect of this prompt. See the sources for the mechanism; changing model, version or input can change the result.

Sources

SourceURL
OpenAI Cookbook: Introduction to Structured Outputs (official repository raw, fetched 200 on 2026-11-07)https://raw.githubusercontent.com/openai/openai-cookbook/main/examples/Structured_Outputs_Intro.ipynb

Source snapshot: 2026-11-07; item-specific rechecks and their scope are recorded in the text or source notes. Features and terms may change; check the original sources before use.