Good morning folks,
I have been trying to integrate Google's Dialoglflow AI into an ED workflow.
My issue has been around the use of an Authorization Token provided by Dialogflow to access their REST API for my AI agent.
When I use Postman to test the Dialogflow REST API, I must specify an Authorization Header with my Dialogflow token in the form of Bearer abc1234567890. And this works as expected!
If within the ED workflow I use a variable of type String to which I assign Bearer abc1234567890 or 'Bearer abc1234567890' or "Bearer abc1234567890". Using this variable as an Input Mapping in a CallRestService Task to Authorization in Customized Headers and that I create an instance of this workflow, it always fails with a 403 - Unauthorized.
Now if I create a new Property, assigned Bearer abc1234567890 to its value (this is not a String according to the user Interface). Using this property as an Input Mapping in the same CallRestService Task to Authorization in Customized Headers and that I create an instance of this workflow, it works as expected.
What am I missing here??
It is a colleague of mine that suggested that I try Properties as he had a similar experience with variables where the data of the variable was 2 words with a space between them. Using the variable with a CallRestService failed and changing to a Property worked!
Because of the space between Bearer and the token I tried single and double quotes around the data as shown above but that did not work...
Thoughts??
Thanks in advance,
Gabriel
|