How to access REST api response

Hello Friends.
I am new in kore ai.

Here I have question how to access REST api response.

Here I have added my dialog task screen hot. What I try to do?

I need to send message to user using message node. So I try to access “phone,body” parameter from API response but not success and bot finally give me error.

So please help me. How I can resolve my problem?

Thanks.

Hello @divyesh.trambadia :smiley:,

Welcome to Kore Community :clap:

The response of the service not is saved in the context object. To retrieve the information, you should use

context.<node name>.response.body.<object name>

For your usecase, pone will be obtained using- context.wscall.response.body.phone

The following documentation should be helpful:

Thank you for stopping by!!

Thank you @sameera.tumuluri

1 Like

hi, what will be the context line for calling “formatted” result for my intent what is today’s date… when result is in this format"{
“statusCode”: 200,
“body”: {
“parsedTime”: [
{
“body”: “now”,
“start”: 0,
“value”: “2024-10-11T19:14:55.595+05:30”,
“end”: 3,
“dim”: “time”,
“latent”: false,
“grain”: “second”,
“formatted”: “11/10/2024”,
“formattedDay”: “11”,
“formattedMonth”: “10”,
“formattedYear”: “2024”,
“formattedHour”: “07”
}
]
},

}


please do reply… yadav.tarun21@gmail.com