#How would I go about calling a webhook from an intent, with a payload of transcribed text?

1 messages ยท Page 1 of 1 (latest)

elder nymph
#

With a conversation agent, I want to say "Tell Jeeves to book me a meeting for next week with Jeremy"

I want "Tell Jeeves to" to force a webhook call, with the payload being {"query":"Bob says book him a meeting for next week with Jeremy"}

As far as I can tell I need to add a "Tell Jeeves to" Intent to... somewhere?

Then in my configuration.yaml I should be able to add the action to execute on that intent, with a webhook looking like:

rest_command:
trigger_webhook1:
url: "<url>"
method: POST
headers:
Content-Type: "application/json"
payload: <the conversation payload>

copper osprey
#

this is an example where it just responds with the text

#

but you could use the variable and send it to a webhook if you wanted to

#

hopefully this gives you a strarting point ๐Ÿ™‚

elder nymph
copper osprey
visual oyster
#

@dapper moss