Enriching data in a pipeline

Hi folks,

Suppose I wanted to enrich data, can you please tell me an approach you would use?

For example: If my pipeline starts out with an input document containing information about a person (name, age, telephone, address, etc.), then suppose the address supplied is only the door number and postcode. I would then want to call an API where I pass the door number and postcode and receive back the full address. How could I then inject the full address details back into the person record (to replace the door number and postcode), before eventually writing it back to a database?

Many thanks