1) To launch an Omniscript from VF Page, we have to create a controller class with a method. And we need to call this method from an action in VF Page as below.
2) Get the parameters from the VF Page URL to pass it to Omniscript as below:
3) Omniscript URL preparation:
Onclick the How to launch activated script button on Omniscript, and we will see the below popup. Get the Omniscript URL from there
4) Frame the omniscript URL in the apex class and pass the URL parameters:
5) We can pass URL parameters by prepending the parameter key with c__ as highlighted below: