A sample integration of Flex with Hubspot running inside it as an Iframe.
It uses the following components:
- a Twilio function that invokes a Hubspot API to fetch a customer record, and returns firstname, lastname and crmid. Can be extended to return more information such as email address or any information returned by Hubspot API.
- Two Studio flows that invoke the function mentioned above and pass the results to flex. One flow is used by incoming calls and the other flow is for incoming conversations (SMS / WhatsApp).
- a Flex plugin that embeds Hubspot within Flex as an Iframe. It will present the contacts page during inactivity or if the caller is not identified or will screen pop the customer record if it is identified using the phone number.
This repository includes 2 plugins:
- plugin-hubspot is for Flex UI v2
- plugin-hubspot-flex1 is for flex UI v1
Example when it identifies the caller:
Example during inactivity: