TRANSACTION_DECISION not triggered. Transactions API

google-assistant

#1

Hello, I’m having troubles using transactions API. I’m using the example in: https://github.com/jovotech/jovo-framework/blob/ba710f6a99617f0cea7e3c74f2534a042e5f665e/examples/typescript/02_googleassistant/transactions-reservations/src/app.ts

After I get the reservation details in the screen, I tap “confirm reservation” and It doesn’t send anything to my jovo app. Two seconds later, Google assistant says there’s an error.

It never enters in TRANSACTION_DECISION intent.

The last response sent from Jovo:

 <<<<< Response - 2021-07-26T16:03:03.360Z 
{
   "outputContexts": [
      {
         "name": "projects/jovoumu/agent/sessions/ABwppHG85-QthMZzrsqGr3QTbdiI-AM95TimgL4agqyFivpj9UI0b-G3ozqzQduISFaIgNK1bA/contexts/__system_counters__",
         "lifespanCount": 1,
         "parameters": {
            "no-input": 0,
            "no-match": 1
         }
      },
      {
         "name": "projects/jovoumu/agent/sessions/ABwppHG85-QthMZzrsqGr3QTbdiI-AM95TimgL4agqyFivpj9UI0b-G3ozqzQduISFaIgNK1bA/contexts/_jovo_session_ijbss",
         "lifespanCount": 1,
         "parameters": {
            "merchantOrderId": "wpaon4eluasda1231231dfassd123"
         }
      }
   ],
   "payload": {
      "google": {
         "expectUserResponse": true,
         "systemIntent": {
            "intent": "actions.intent.TRANSACTION_DECISION",
            "data": {
               "@type": "type.googleapis.com/google.actions.transactions.v3.TransactionDecisionValueSpec",
               "order": {
                  "createTime": "2021-07-26T16:03:03.336Z",
                  "lastUpdateTime": "2021-07-26T16:03:03.336Z",
                  "merchantOrderId": "wpaon4eluasda1231231dfassd123",
                  "userVisibleOrderId": "wpaon4eluasda1231231dfassd123",
                  "transactionMerchant": {
                     "id": "http://www.example.com",
                     "name": "Example Merchant"
                  },
                  "contents": {
                     "lineItems": [
                        {
                           "id": "LINE_ITEM_ID",
                           "name": "Dinner reservation",
                           "description": "A world of flavors all in one destination.",
                           "reservation": {
                              "status": "PENDING",
                              "userVisibleStatusLabel": "Reservation is pending.",
                              "type": "RESTAURANT",
                              "reservationTime": {
                                 "timeIso8601": "2021-07-27T10:30:00.01Z"
                              },
                              "userAcceptableTimeRange": {
                                 "timeIso8601": "2020-01-27/2020-01-27"
                              },
                              "partySize": 6,
                              "staffFacilitators": [
                                 {
                                    "name": "John Smith"
                                 }
                              ],
                              "location": {
                                 "zipCode": "94086",
                                 "city": "Sunnyvale",
                                 "postalAddress": {
                                    "regionCode": "US",
                                    "postalCode": "94086",
                                    "administrativeArea": "CA",
                                    "locality": "Sunnyvale",
                                    "addressLines": [
                                       "222, Some other Street"
                                    ]
                                 }
                              }
                           }
                        }
                     ]
                  },
                  "buyerInfo": {
                     "email": "email from my google assistant account",
                     "firstName": "name from my google assistant account",
                     "lastName": "lastname from my google assistant account",
                     "displayName": "Some name"
                  },
                  "followUpActions": [
                     {
                        "type": "VIEW_DETAILS",
                        "title": "View details",
                        "openUrlAction": {
                           "url": "http://example.com"
                        }
                     },
                     {
                        "type": "CALL",
                        "title": "Call us",
                        "openUrlAction": {
                           "url": "tel:+16501112222"
                        }
                     },
                     {
                        "type": "EMAIL",
                        "title": "Email us",
                        "openUrlAction": {
                           "url": "mailto:[email protected]"
                        }
                     }
                  ],
                  "termsOfServiceUrl": "http://www.example.com"
               },
               "orderOptions": {
                  "requestDeliveryAddress": false
               },
               "presentationOptions": {
                  "actionDisplayName": "RESERVE"
               }
            }
         },
         "userStorage": "{\"userId\":\"d9ed9607-97c3-4f96-af67-0dca30c57440\"}"
      }
   }
}

and the original request:

 >>>>> Request - 2021-07-26T16:03:03.321Z 
{
   "responseId": "a6bbe147-fa3f-4d7d-856a-38e497cfa798-046d94d0",
   "queryResult": {
      "parameters": {},
      "allRequiredParamsPresent": true,
      "outputContexts": [
         {
            "name": "projects/jovoumu/agent/sessions/ABwppHG85-QthMZzrsqGr3QTbdiI-AM95TimgL4agqyFivpj9UI0b-G3ozqzQduISFaIgNK1bA/contexts/actions_capability_screen_output"
         },
         {
            "name": "projects/jovoumu/agent/sessions/ABwppHG85-QthMZzrsqGr3QTbdiI-AM95TimgL4agqyFivpj9UI0b-G3ozqzQduISFaIgNK1bA/contexts/actions_capability_media_response_audio"
         },
         {
            "name": "projects/jovoumu/agent/sessions/ABwppHG85-QthMZzrsqGr3QTbdiI-AM95TimgL4agqyFivpj9UI0b-G3ozqzQduISFaIgNK1bA/contexts/actions_capability_web_browser"
         },
         {
            "name": "projects/jovoumu/agent/sessions/ABwppHG85-QthMZzrsqGr3QTbdiI-AM95TimgL4agqyFivpj9UI0b-G3ozqzQduISFaIgNK1bA/contexts/actions_capability_audio_output"
         },
         {
            "name": "projects/jovoumu/agent/sessions/ABwppHG85-QthMZzrsqGr3QTbdiI-AM95TimgL4agqyFivpj9UI0b-G3ozqzQduISFaIgNK1bA/contexts/actions_capability_account_linking"
         },
         {
            "name": "projects/jovoumu/agent/sessions/ABwppHG85-QthMZzrsqGr3QTbdiI-AM95TimgL4agqyFivpj9UI0b-G3ozqzQduISFaIgNK1bA/contexts/google_assistant_input_type_voice"
         },
         {
            "name": "projects/jovoumu/agent/sessions/ABwppHG85-QthMZzrsqGr3QTbdiI-AM95TimgL4agqyFivpj9UI0b-G3ozqzQduISFaIgNK1bA/contexts/actions_intent_transaction_requirements_check",
            "parameters": {
               "TRANSACTION_REQUIREMENTS_CHECK_RESULT": {
                  "@type": "type.googleapis.com/google.actions.transactions.v3.TransactionRequirementsCheckResult",
                  "resultType": "CAN_TRANSACT"
               },
               "text": ""
            }
         },
         {
            "name": "projects/jovoumu/agent/sessions/ABwppHG85-QthMZzrsqGr3QTbdiI-AM95TimgL4agqyFivpj9UI0b-G3ozqzQduISFaIgNK1bA/contexts/__system_counters__",
            "lifespanCount": 1,
            "parameters": {
               "no-input": 0,
               "no-match": 1
            }
         }
      ],
      "intent": {
         "name": "projects/jovoumu/agent/intents/d3fba741-4cd4-4a16-8c76-962566f0c9a1",
         "displayName": "Default Fallback Intent",
         "isFallback": true
      },
      "intentDetectionConfidence": 1,
      "languageCode": "es"
   },
   "originalDetectIntentRequest": {
      "source": "google",
      "version": "2",
      "payload": {
         "user": {
            "locale": "es-ES",
            "userStorage": "{\"userId\":\"d9ed9607-97c3-4f96-af67-0dca30c57440\"}",
            "userVerificationStatus": "VERIFIED"
         },
         "conversation": {
            "conversationId": "ABwppHG85-QthMZzrsqGr3QTbdiI-AM95TimgL4agqyFivpj9UI0b-G3ozqzQduISFaIgNK1bA",
            "type": "ACTIVE",
            "conversationToken": "[]"
         },
         "inputs": [
            {
               "intent": "actions.intent.TRANSACTION_REQUIREMENTS_CHECK",
               "rawInputs": [
                  {
                     "inputType": "VOICE"
                  }
               ],
               "arguments": [
                  {
                     "name": "TRANSACTION_REQUIREMENTS_CHECK_RESULT",
                     "extension": {
                        "@type": "type.googleapis.com/google.actions.transactions.v3.TransactionRequirementsCheckResult",
                        "resultType": "CAN_TRANSACT"
                     }
                  },
                  {
                     "name": "text"
                  }
               ]
            }
         ],
         "surface": {
            "capabilities": [
               {
                  "name": "actions.capability.SCREEN_OUTPUT"
               },
               {
                  "name": "actions.capability.MEDIA_RESPONSE_AUDIO"
               },
               {
                  "name": "actions.capability.WEB_BROWSER"
               },
               {
                  "name": "actions.capability.AUDIO_OUTPUT"
               },
               {
                  "name": "actions.capability.ACCOUNT_LINKING"
               }
            ]
         },
         "isInSandbox": true,
         "availableSurfaces": [
            {
               "capabilities": [
                  {
                     "name": "actions.capability.AUDIO_OUTPUT"
                  },
                  {
                     "name": "actions.capability.SCREEN_OUTPUT"
                  },
                  {
                     "name": "actions.capability.WEB_BROWSER"
                  }
               ]
            }
         ]
      }
   },
   "session": "projects/jovoumu/agent/sessions/ABwppHG85-QthMZzrsqGr3QTbdiI-AM95TimgL4agqyFivpj9UI0b-G3ozqzQduISFaIgNK1bA"
}

Please help @AlexSwe


#3

Finally could fix it


#4

Hi, I am also having this problem, I’m just wondering what the fix was, cause I have tried a range of different things even starting from the beginning twice and cant find the fix?