- Status changed to Closed: works as designed
almost 2 years ago 2:11pm 17 January 2023 - Status changed to Needs review
almost 2 years ago 1:51pm 6 February 2023 - 🇩🇪Germany dotist
I created patches for the SDK and this module in order to support rich-responses and event-responses. https://github.com/gambry/dialogflow-webhook/pull/1
The last submitted patch, 5: 3333883-rich-response.patch, failed testing. View results →
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.- Status changed to Needs work
almost 2 years ago 3:34pm 6 February 2023 - 🇮🇹Italy gambry Milan
@dotist thanks for your work. The patch can be accepted as it is, most of the changes are not really needed (all comments, creation of unused variable, dockblock not needed).
+++ b/modules/chatbot_api_apiai/src/IntentResponseApiAiProxy.php @@ -80,8 +80,17 @@ class IntentResponseApiAiProxy implements IntentResponseInterface { + public function setIntentResponse($response, string $type = 'messages') {
This is a risky change of API. If committed, integrations may break until developers upgrade their code.
What about something likesetIntentResponse($data, string $type = 'text') {}
, with text being the default. So we make this backcompatible?We need to make sure we don't break things and new code is tested.
I'll comment changes togambry/dialogflow-webhook
in its own PR.Thanks!
- 🇩🇪Germany dotist
Thanks for your feedback @gambry, I've updated the function and cleaned up the patch!
- 🇮🇹Italy gambry Milan
@dotist I'll post it in here too, in case you haven't seen it.
Based on your PR, I created this one: https://github.com/gambry/dialogflow-webhook/pull/3
Please have a look if it has got everything you had in mind, so I can merge it and we finish working on this issue.Thanks!
- Status changed to Needs review
over 1 year ago 7:10pm 27 February 2023 - 🇮🇹Italy gambry Milan
While tests run, a bit of documentation.
There are two main ways custom payload or event can be added to the fulfilment:
$this->response->getFulfillment()->addMessage()
$this->response->setIntentRespose()
-
gambry →
committed a91ac891 on 8.x-2.x
Issue #3333883 by gambry, dotist: Response with custom payload /...
-
gambry →
committed a91ac891 on 8.x-2.x
- Status changed to Fixed
over 1 year ago 10:03am 28 February 2023 Automatically closed - issue fixed for 2 weeks with no activity.