cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve OAuth token using "Designtime APIs" credentials of FAQ bot in an another bot.

sridhar_thiyagarajan
Product and Topic Expert
Product and Topic Expert
0 Kudos
635

Hi,

I am looking for consuming an answer for a FAQ question asked from "Retrieve Answers" bot by connecting to "FAQ" bot using a "Fallback" mechanism.

While doing so, I had created "Designtime APIs" token in FAQ bot and while consuming the same from the other bot as shown below,

Always, getting the below error.

Have anyone faced this error. Kindly assist on the same.

View Entire Topic
0 Kudos

Hi sridhar.thiyagarajan ,

Please make API call to /dialog URL with authentication as OAuth2, provide the authentication url, client ID, client secret as shown below

Also please add X-Token as header and value as developer token of the bot in case you want to use destigntime API calls

The body can contain either a hard coded payload or a dynamic payload

sridhar_thiyagarajan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks a lot .. Harinder. It worked and now, I can consume response of FAQ bot through APIs from an another bot.