Connect to Open CTI
Demo Adapter
Open CTI and Security
Asynchronous Calls
Sample HTML Page
Sample Code for Using Lightning Message Service with Open CTI
Work with Canvas
Work with Console APIs
Best Practices
Previous Versions
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.
Tip
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.
1<apex:page>
2 <script src="/support/api//interaction.js" type="text/javascript"></script>
3 ...
4</apex:page>1<apex:page>
2 <script src="/support/api//lightning/opencti_min.js" type="text/javascript"></script>
3 ...
4</apex:page>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.
1<script src="https://MYDOMAINNAME--PACKAGENAME.vf.force.com/support/api//interaction.js" type="text/javascript"></script>1<script src="https://MYDOMAINNAME--PACKAGENAME.vf.force.com/support/api//lightning/opencti_min.js" type="text/javascript"></script>