Connect to Open CTI
The first portion of any JavaScript code that uses the Open CTI must make the toolkit available to the JavaScript code. The syntax for this is different depending on whether you are embedding JavaScript in a Visualforce page or a page developed using any web technologies and served from a third-party domain.
The version of Open CTI is in the URL.
For Visualforce pages or any source other than a custom onclick JavaScript button, specify a <script> tag that points to the Open CTI JavaScript library file.
- In Salesforce Classic:
- In Lightning Experience:
For Visualforce, we recommend using a relative path to include interaction.js or opencti_min.js.
For third-party domains, specify an absolute URL to interaction.js or opencti_min.js to use the toolkit.
- In Salesforce Classic:
- In Lightning Experience: