Make a new function :)
Add your dependencies and keys to functions configuration: https://www.twilio.com/console/functions/configure
In this example, I use:
Keys: zendeskAccessToken, zendeskAccessEmail, zendeskUrl
Dependencies: node-fetch
Adapt CreateZendeskTicket.js code from this gist to use in the handler.
From the Widget Library, under TOOLS & EXECUTE CODE, choose Run Function.
Give your Widget a name like CreateZendeskTicket,
Select the Twilio Function you made.
Specify any keys you may be using in event
In this example, only 'from' is used as event.from
Comments welcome.