webhook request timeout dialogflow v2 migration ( webhook code:4)? - dialogflow-es

I have dialogflow application w.r.t. v1 currently,
we are working on the migration to v2,
so during the process, when testing the changes w.r.t. dialogflow console,
we found issues like webhook request time,
please find the diagnostic info. from the console,
"webhookStatus": {
"code": 4,
"message": "Webhook call failed. Error: Request timeout."
}
diagnostic info. shows tabs like "raw API response", Fulfillment request and fulfillment status (Webhook call failed. Error: Request timeout.), but not showing fulfillment response tab here.
Can anybody help/guide me on this for the resolution,
as of now I didn't see any specific solution in this forum & so I am posting
this one.
please let me know if anybody needs more info. I can provide on this also.
The expected result should be displayed in https://console.dialogflow.com/,
but currently shows Default response as "not available".

Related

How to return an custom output with status code in Zapier rest hook perform?

I am using Zapier web builder to create a Zapier APP. I have rest hooks, when I subscribing for a hook API sends a verification challenge code, this comes in the perform
Here is the content that I am receiving in query string :
hub.mode=subscribe&hub.challenge=97890257&hub.verify_token=12345
Zapier returning below back to api:
{"id": "732a8cfc-1dcc-4b54-9a55-7d21e0858ad6", "request_id": "5feb0139-a858-4fbc-b32d-47e13ff472a0", "attempt": "5feb0139-a858-4fbc-b32d-47e13ff472a0", "status": "success"}
I want to modify the return response and status code.
Please advise?
Thanks
As of Jan 2021, Zapier doesn't support modifying the default webhook response ({id: ..., attempt: ..., etc}). Unfortunately, this means it can't be used for integrating with webhook services that require a specific challenge response.
We're looking into this functionality, but have no timetable for if/when it'll be available.

Microsoft Teams outgoing webhooks broken?

I am developing an integration in Teams using outgoing webhooks and it was working fine until recently, but now, my webhook keeps replying there is an error with my request (Sorry, there was a problem encountered with your request)
I had this problem at first, but I solved it by having my service send the correct reply following the doc (https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/outgoingwebhook)
Something like :
{
"type": "message",
"text": "This is a reply!"
}
But now, I always get an error response, even though my service is replying with the supposedly correct json.
It looks like something changed in the implementation, but the documentation is not up to date
Any help would be appreciated.
Thanks!

Outlook REST API is returning 404 for event in message

I have the following case:
I use the Outlook REST API (without any library) to visualize the users' emails - including Event invites. First, I make a call to get only the message properties and if the message has MeetingMessageType value, then another request is sent to:
https://outlook.office.com/api/v2.0/me/messages/<messageId>?$select=Microsoft.OutlookServices.EventMessage/MeetingMessageType&$expand=Microsoft.OutlookServices.EventMessage/event($select=Id,SeriesMasterId,iCalUID,Type,CreatedDateTime,LastModifiedDateTime,WebLink,Calendar,Start,End,IsAllDay,IsCancelled,Organizer,Attendees,Location,Subject,ResponseStatus,OnlineMeetingUrl,Recurrence,ResponseRequested)
to get the Event information and provide the customer with the option to respond to the invite.
The problem:
Since yesterday one of our clients reported that he can't see the event information. It turns out that the request for getting this information is returning 404.
The response body:
{
"error": {
"code": "ErrorItemNotFound",
"message": "The specified object was not found in the store., The process failed to get the correct properties."
}
}
The event is shown in the Outlook desktop mail client.
The client also shared that they have enabled ATP (advance threat protection) at his company. Not sure if this can have anything to do with the problem.
I see that other clients also have this problem.
Update:
I asked the user to try the following requests from the Outlook sandbox:
https://outlook.office.com/api/v2.0/me/messages/<messageId>
This request returns the EventMessage with "MeetingMessageType": "MeetingRequest".
Then when he tried accessing the Event:
https://outlook.office.com/api/v2.0/me/messages/<messageId>?$select=Microsoft.OutlookServices.EventMessage%2FMeetingMessageType&$expand=Microsoft.OutlookServices.EventMessage%2Fevent
The Outlook REST API returns 404.
For me, the same formatted requests work, so I can't really understand what is going on.
Please, any information will be well appreciated!

Unable to trigger event from webhook - api.ai

I need your help with the using of events for communication from webhook to demo chat (https://snag.gy/6tfGEZ.jpg) of api.ai. I have already test in telegram too and it does no work either.
My flow is the following:
The user request something from the api.ai web demo chat. for instance: “Hi, I need my access code”
Api.ai gets the intent and send it to my webhook.
My webhook starts an asynchounous operation to process user request (it could take more than 6 seconds) and returns “We are processing your request please wait a few seconds” to api.api therefore the user will see that message in demo chat.
After the asynchrounous process has been finished the next step will be call POST https://api.api.ai/api/query?v=20150910 with body
{
"event": {
"name": "result_event",
"data": {
"code": "ABDDRR787545HHTTU4545454"
}
},
"timezone": "America/New_York",
"lang": "en",
"sessionId": "a77875da-4bd5-db26-dce2-e42439d4fbde"
}
result_event already exists inside an Intent that contains the response “Your request was processed. Here your code: $code”.
The idea here is the user get the respond to his request for instance: “Your request was processed. Here your code: ABDDRR787545HHTTU4545454”
Althought I get a successfully respond of (https://api.api.ai/api/query) called from my webhook the user don’t get any response in the demo chat.
This is the screen (https://snag.gy/qN3tTC.jpg) of the intent with my event in api.ai.
What do you think I’m doing bad ?
Thanks in advance
Events in API.AI are calling methods for a specific intent. it does not trigger anything so you can not get any triggered for you web-demo bot.
this will work if you can make a custom html bot where you can call events endpoint to get the json data and show it in your html bot.

Registrering a bot fails asking a code parameter

I registeres a bot on:
https://dev.botframework.com
There is a test function. Whn I click on the button i get this message:
BadRequest
{
"Message": "The WebHook verification request must contain a 'code' query parameter."
}
What does it mean? I have registered several bot but never had this issue.
Thanks
well, I deleted the web apps and redeployed
now everything is OK
I don't know why

Resources