I need to trigger an action within my application when the user either completes the survey or cancels it. Similar to how we currently initiate the survey (Intercom('startSurvey', XXXXX);), I require a comparable mechanism to execute a function upon survey completion or closure.
Thank you.