All CAPI dialog functions take a keyword argument continuation . This is a function which is called with the results of the dialog.
You do not need to construct the continuation argument yourself, but rather call the dialog function inside
with-dialog-results
.