Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger the Callback/Voicemail after workflow ends #36

Open
maxmito opened this issue Aug 27, 2021 · 2 comments
Open

Trigger the Callback/Voicemail after workflow ends #36

maxmito opened this issue Aug 27, 2021 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@maxmito
Copy link

maxmito commented Aug 27, 2021

Hello and thanks for sharing the plugin!

I have a workflow with 2 steps, and I would like to trigger the feature only at the end if no one answers.
Should I look for the speciic event and redirect the call to /queue-menu?mode=main or what to dou suggest?

Thanks

Max

@vernig
Copy link
Contributor

vernig commented Aug 27, 2021

Hey @maxmito, just to make sure I understand, the flow you have in mind is:

  • Customer wait in queue. There is no prompt with the waiting time / queue time
  • The customer goes through the Taskrouter workflow / escalation path
  • If no reservations are generated at the end of the workflow, then the customer is asked if they want to leave a voicemail or request a callback (and they cannot choose to stay in the queue)

Is that the flow you want to implement? If not, can you clarify the steps?

Should I look for the speciic event and redirect the call to /queue-menu?mode=main or what to dou suggest?

I wouldn't suggest do that blindly, because the serverless implementation depends on existing task. Let me know more about the flow, and I can try to help you integrating it

@vernig vernig added the question Further information is requested label Aug 27, 2021
@vernig vernig self-assigned this Aug 27, 2021
@maxmito
Copy link
Author

maxmito commented Aug 27, 2021

@vernig thanks for the answer!

Yes that's the flow I want to achieve and this is the approach I'm testing and looks working so far:

1 - As per instruction I created a new Task Queue (CallbackVoicemail);
2 - I deployed all the functions as instructed, via Serverless
3 - In all my workflows I added an additional steps at the end so the taks enter the newly created CallbackVoicemail task queue
3 - I created a function (and put it in the Event Callceck under Workflow - Settings) that intercepts the task-queue.entered event and check if the TaskQueueName is CallbackVoicemail , if yes I trigger a call update and redirect the call to the /queue-menu?mode=main url

As said this looks working, I'm still testing in a staging environemnt and have agents testing it, I'm sure few details will need to be olished, but I guess we are on the right path!

Any suggestions is more than welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants