Set Up the Bring Your Own Bot Demo Connector
To verify your Bring Your Own Bot (BYOB) configuration is ready for end-to-end testing, set up the interactive Salesforce BYOB Demo simulator to test external bot messaging integration with Messaging End Users (MEUs).
The demo connector allows you to:
- Test external bot messages through the Interaction Service.
- Manage bot agent work requests by accepting or declining them when end users send messages.
- Simulate complete bot-to-MEU conversation flows.
The connector constructs Interaction API request payloads using your External Conversation Participant Integration Definition and sends requests to the Interaction Service for bot message handling.
Before setting up the BYOB demo connector, make sure that you:
- Configure an
ExtConvParticipantIntegDefrecord in your Salesforce org with the associatedExternalConversationBotDefrecord. - Set up an External Client App with JWT authentication.
- Configure Omni-Channel routing with appropriate queue settings.
- Install Node.js, NPM, and
webpack-dev-serverin your development environment.
Use the sample implementation in GitHub to set up the BYOB demo connector: github.com/salesforce-misc/byo-demo-connector.
- Clone the repository and install the required dependencies using
npm. - Copy the provided
config.envtemplate to create your.envfile. - Configure your
.envwith your Salesforce org credentials, External Client App details, and BYOB-specific settings. Key configuration elements include:- The API Name of your
ExtConvParticipantIntegDefrecord. - The Salesforce record ID of your
ExternalConversationBotDefrecord. - The Omni-Channel queue ID for routing bot conversations.
- The API Name of your
- For sandbox environments, update the authentication endpoints and audience URLs accordingly.
- Start the application using
npm start. The web server runs onhttps://localhost:8080by default. - Access the BYOB testing interface at
https://localhost:8080/byob.
If you encounter SSL certificate warnings during local development, you can proceed through the browser warning or set up a self-signed SSL certificate.
The demo connector is intended as a reference example only. Create your own connector for your integration before using it in production.
After you set up the demo connector, test the Interaction Service APIs.