← Back to all posts

Restoration

On this page

Purpose

Restoration resolves every intact tag a Pseudonymization component minted earlier in the same flow back to its original value. It closes the protected segment that component opened, so values are raw again once Restoration has run.

Restoration can resolve only tags created earlier in the same flow and chat session. Place it downstream of Pseudonymization in that flow.

When to use it

  • Put the real value back into an Agent's or model's response right before the user sees it.
  • Restore a real identifier immediately before the step that needs it, rather than only at the end of the flow. For example, restore an actual email address or record number before a lookup that requires it.

How to use it

  1. Place Restoration downstream of the Agent or model that consumed a Pseudonymization component's output earlier in the same flow.
  2. Connect that Agent's or model's response to Input.
  3. Connect Restored Output to Chat Output, or to any further step that needs the original values instead of tags.

Every component placed after Restoration receives the original values, not tags. Place it after the last step that should see a tag and before the first step that needs the real value.

Configuration

SettingWhat it controlsRecommended starting point
InputThe Message value checked for known tags.Connect the response coming out of the protected segment, right before it needs to leave that segment.

Restoration has no other setting. There is nothing to select or tune beyond what value to restore.

Expected result

Every tag Restoration recognizes from the current flow's session is replaced with its original value. A tag it does not recognize is left unchanged. Only the Message text is restored; every other field passes through unchanged.

Example

Input

Contact [EMAIL_ADDRESS_1] for details.

Restored Output

Contact john@example.com for details.

For a complete raw-to-tagged-to-restored round trip across a protected segment, see the Pseudonymization example.

The tag number is an example. The actual number depends on tags already used in the session.

  • Pseudonymization is the required upstream pair. Restoration has no standalone use without it.
  • Chat Output is the typical destination for the fully restored answer.
← Back to all posts