SK SKYVVA Documentation

1.2. How to use custom response using the response (outbound) interface to agent?

#### [su_highlight background="#00d9a6"]Release Version[/su_highlight]

Introduction:

We have two type of response:

  1. standard response
  2. custom response using the response (outbound) interface to do the mapping
if we want to get data from the response interface then we need do mapping for response interface and link it to request interface. Only data send from input will return back as response. If we want other than the input data then we have to use VLOOKUP formulae in the response mapping.

Usecase:

Objective: custom response using the response (outbound) interface to do the mapping Pre-requisites:-

[su_box title="Note" box_color="#2a8af0" title_color="#000000"] Make sure that msg type structure should start with root node [/su_box]

Steps: Step1: Create Inbound Interface as Request Interface. where We have to select:

Inbound mapping should looks like:

Step2: Create Outbound Interface as Response Interface. where We have to select:

In mapping If formula is applied to add constant value. for example: IF(Name = "Mac", "Testmac",Name) When We post name= mac as input. In response(Outbound) it should show Testmac.

Step3: To get data from the response interface we need do mapping in same interface and link it to request interface(Inbound)

Step4: here we are using Postman for V4 integrate rest api.

  1. V4 API:  V4 API pass Integration, Interface, mode, request-format, response-format parameter inside the URL query parameter.
2. The URL contains:  URl contains following the details for V4integrate:

All this details are nothing but the parameters.

[su_box title="Note" box_color="#2a8af0" title_color="#000000"] Please make sure there is no  unwanted space after value inside query params[/su_box]

3. Authorization

4. Header:-

5. Body:

6. Send the Request:

7 Check response for Outbound interface:

#### 8 Check Result on Message monitoring:

Open this article in the interactive viewer →