Skip to content

Chatbot Widget

To embed the chatbot widget into your website, use the following code snippet:

<script src="https://integrations.funnelleasing.com/gen-ai-chatbot/v1/funnel-gen-ai-chat.js"></script>
<script>
window.addEventListener('load', function () {
window.FunnelGenAIChat.initialize({
apiKey: '123',
communityId: 999,
waitForMarketingInfo: false,
leadSourceId: '1234',
campaignInfo: 'a-string-of-text',
});
});
</script>

The chatbot widget accepts the following parameters:

  • apiKey - Required - Funnel Customer API Key
  • communityId - Required - The ID of the community the chatbot is associated with.
  • waitForMarketingInfo - Optional - This must be true if the the DNI script is being utilized. Causes the script to wait to initialize the Chatbot until marketing info is passed in.
  • leadSourceId - Optional - ID representing the lead source for tracking. If you are using the DNI script, this is not neccessary.
  • campaignInfo - Optional - String of UTM parameters. If you are using the DNI script, this is not neccessary.