Is it possible to customize the siri response for sirikit?

I am trying to work on INPayBillIntent of Siri Kit and would like to change some siri kit responses. Like with the user has not selected the fromAccount attribute siri response should mention that. Currently there are only failure code for not authorized and no sufficient funds.


Thank you in advance.

I haven't used the Intents for bill payment but the general pattern for SiriKit is that before you handle the user's request with a success/failure is that you can do some pre-processing (in a sense). This allows you to make sure you have everything you need to handle the bill payment where you make sure you have all the parameters you need (such as amount, account, and date to be paid).


In the WWDC video for messages, they show how Siri will come back to the user if extra information is missing, such as attempting to disambiguate between recipients in contacts with the same name. This is what you can try to look for/implement. Once any disambiguation is resolved and all parameters are me, you can then process the intent with a success/failure.

Look here: https://developer.apple.com/documentation/sirikit/inpaymentsdomainhandling. There is a section called "Resolving Details of the Intent".


Specifically:

INSearchForAccountsIntent
, a request to provide a list of the user's accounts.


This might be what you're looking for.

Is it possible to customize the siri response for sirikit?
 
 
Q