Custom Extensions Like Confetti Effect
Hi there!
A while back I saw the usage of confetti as an effect using custom extensions.
I was wondering if there are other ways to do these custom effects like fireworks, balloons, stars, etc
Any ideas if that is possible to do with extensions or is it only possible to do the confetti for now?
Appreciate any help!
š¤
1 Reply
Absolutely ā the āconfettiā demo is just one example of an effect extension.
Effect extensions let you run any client-side JavaScript as soon as the assistant emits a matching trace, so youāre free to trigger balloons, fireworks, star bursts, page scrolls⦠whatever you can code. How it works
1. In Voiceflow add a Custom Action (or Function) step and set a unique name/payload ā e.g.
2. On your site define an effect extension: 3. Register it (alongside the confetti one if you like) when you load the widget: Thereās no hard limit on the number or type of effect extensions you include ā each extension simply listens for the trace pattern you define in
⢠Docs ā Custom Forms & Extensions: https://docs.voiceflow.com/docs/custom-forms-and-extensions
⢠Sample extensions repo (includes the confetti example): https://github.com/voiceflow-gallagan/vf-extensions-demo/ So feel free to swap the confetti logic for a fireworks canvas, floating balloons, sparkle CSS, etc. ā if you can trigger it with JavaScript, an effect extension can run it.
Effect extensions let you run any client-side JavaScript as soon as the assistant emits a matching trace, so youāre free to trigger balloons, fireworks, star bursts, page scrolls⦠whatever you can code. How it works
1. In Voiceflow add a Custom Action (or Function) step and set a unique name/payload ā e.g.
celebrate: "fireworks"
.2. On your site define an effect extension: 3. Register it (alongside the confetti one if you like) when you load the widget: Thereās no hard limit on the number or type of effect extensions you include ā each extension simply listens for the trace pattern you define in
match
and then runs whatever JavaScript you put in effect
.
Resources⢠Docs ā Custom Forms & Extensions: https://docs.voiceflow.com/docs/custom-forms-and-extensions
⢠Sample extensions repo (includes the confetti example): https://github.com/voiceflow-gallagan/vf-extensions-demo/ So feel free to swap the confetti logic for a fireworks canvas, floating balloons, sparkle CSS, etc. ā if you can trigger it with JavaScript, an effect extension can run it.