Create a chat using SalesForce and Angular
Before installing this package into your Angular application, you must be configured the live agent into your salesforce application. Follow this link for more instructions.
npm install cap-livechat-sf
import { CapLiveChatModule } from 'cap-livechat-sf';
@NgModule({
declarations: [
...
],
imports: [
...
CapLiveChatModule.forRoot({
embeddedServiceName: 'Your embedded service name',
idServiceName: 'Your ID service name',
urlSandbox: 'Your URL Sandbox',
urlDomain: 'Your URL Domain',
baseLiveAgentContentURL: 'Your base live agent content URL',
deploymentId: 'Your deployment ID',
buttonId: 'Your button ID',
baseLiveAgentURL: 'Your base live agent URL',
scriptUrl: 'Your script URL',
eswLiveAgentDevName: 'Your esw live Agent Dev Name'
})
]
})
<cap-live-chat-sf></cap-live-chat-sf>
In case that you don't have a domain and you want to test the CapLiveChat package we recomend you ngrok. Ngrok provide a multiplatform tunnelling, reverse proxy software that establishes secure tunnels from a public endpoint such as internet to a locally running network service while capturing all traffic for detailed inspection and replay. For detailed inspection and replay. Follow this link for more instructions.
