I have been doing some extensive UCCX scripting quite recently. One of the best ways to approach UCCX scripting is to explore Script Repository in your UCCX Server with some ACD(Automatic Call Distribution ) and AA(Auto Attendant) sample scripts.However, this might be very basic for most users out there. If you want to dig deep into learning, there is an excellent script repository on Cisco.com. With the release of UCCX 7.0(1) , some of the advanced Release 3 scripts have been added to repository in addition to previously available Release 1 and Release 2 scripts.
These Release 3 scripts include Database Application Scripts , HTTP Trigger with added callback feature and Advanced queuing scripts with voicemail and callback feature.You can test not only basic and advanced scripts but in addition you can utilize detailed documentation and audio prompts available.
Here is the link for UCCX Scripting repository
Happy Scripting !