For automatic call distribution for Salesforce, we need to do the following in Twilio
1. Create functions in Twilio
2. Create Studio Flow
3. Call the functions in the Twilio Studio.
Examples
Account Owner Extension Lookup