Get response from a service and attach it to another service

Hi,
The scenario : App calls KONG and KONG calls to Service-A, with the response of Service-A, KONG extracts some information (say sess_id ) and attaches it to the header to call another Service-B, gets the response and sends it back to App.