Siri Shortcuts Response Templates Not Being Used?

I have shortcuts up and running and I have my custom response added to my completion handler. In this case...


  completion ([TriggerSceneIntentResponse successIntentResponseWithSceneName:intent.sceneName]);


When I ask Siri to run my shortcut I get success but all she says is "Done", or "OK". My template for success is "Your sceneName has been activated." However again, Siri never uses this template for some reason.


I'm not sure if image posts are working in the forums but I'll give it a try here. Here's what my custom intent looks like in the intent editor.

[Apparently this does not work. Apologies for no image.]


I've confirmed that my completion line above is called by debugging my intent target. I'm unsure what I'm missing?

Here's links to two images that might shed some light on what I'm struggling with. I'm still not sure why my response templates are not being used. I've also confirmed that "sceneName" is not nil and actually has a string associated with it.


Here's an image of my intent in the intent editor... HlyTd.png


And here is what Siri is reponding back with... SDyGX.jpg


Very much welcome any suggestions.

A further update here. I've setup a similar, but different, project of mine for Siri Shortcuts and copied over the code I've done. With this second project the response templates work. Both projects are setup exactly the same. Is there some oddity here that I'm missing? I've tried cleaning my project and deleting the Derived Data folder. No change. Just can't get it working with this first project.

Something is not adding up here. I have gone through all the project settings and compared them to the project that is working, no differences either than the names of the project and folders.


They have the same cocoapods and they are all linked to the right targets (otherwise build wouldn't work).


I've tried deleting my intents definition file and created it again using the same settings as the one that is working in my other project. No affect.


As started earlier, I've cleaned the build folder, quit Xcode, deleted everything out the DerivedData folder. No affect.


I've even tried deintegrating my cocoapods and installing them again. No affect.


I'm beginning to wonder if I've found a bug here.


Very much welcome some feedback here. Anyone else experience this? It's not a show stopper for the app but it's not clean and the best experience for the end user. So given that I don't think I'll use a TSI - Code Level Support from my developer account. But I'd like to get this resolved. I know there's not much to go on here but everything is basically identical between my two projects and there's no errors. It's just that Siri isn't responding back with the response template.


Any comments?

I have the exactly same problem as you. I created a small project with Swift to add custom intent and intent extension, everything works fine. Siri reads the response string from .intentdefinition file. When I add custom intent and intent extesion to an existing project, Siri doesn't read my response string. Since the existing project is using objective-c, I also tried adding intent extension with Swift, but nothing helps. I compare the project settings, info.plist and provisioning profile, don't see anything could cause the problem. Even moving the code from the working project into my existing project, no difference. I then created another new project with custom intent, and it works too. It makes me thinking that my existing project may have some settings cause the problem...

I also found although Siri audio feedback doesn't work, but if I use search to trigger the shortcut, it displays my response string. So looks like just Siri has problem to retrieve the response or read the response?

I added a log ("Handle my test intent") in handle() function and debug into it, I found the system Intent error printed on the console after completion(response) is called.

2018-10-04 15:21:37.573902-0400 SiriExtension[2260:423149] Handle my test intent

2018-10-04 15:21:37.623309-0400 SiriExtension[2260:423150] [Intents] -[INCache cacheableObjectForIdentifier:] Unable to find cacheable object with identifier 2117FABE-0F3A-42E7-830C-34DFD214E55E in cache.

Siri Shortcuts Response Templates Not Being Used?
 
 
Q