FlowRunner
Features Pricing
Theme
Start Free

Denser AI chatbot leads into HubSpot with the question attached

Checks Denser AI on a schedule for new lead conversations, creates or updates the HubSpot contact with what they asked, and tells your sales channel in Slack.

The prompt

Every few minutes, check our Denser AI chatbot for new lead conversations. Read the conversation and pull out the person's name, email, company and phone, what they asked about, and a short summary for sales. Look them up in HubSpot by email. If they're already a contact, update them with the question. If not, create them as a lead. Then post the lead in our sales channel in Slack with who they are and what they asked the chatbot. If there's no email in the conversation, post it to Slack anyway and leave HubSpot alone.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

The flow

No Yes Action Update the contact Action Create the contact Action Tell sales inSlack Condition Email given? If a step fails Not in HubSpot yet Action Find the contact inHubSpot Action Post the leadwithout an email Code Build the HubSpotfields Starts the flow New lead inDenser AI AI agent Read the lead'sconversation

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works

What each step does

  1. New lead in Denser AI Checks Denser AI every 5 minutes and starts once for each new conversation whose client type is Lead, such as a visitor who filled in the chatbot's lead form.
  2. Read the lead's conversation An AI agent reads the messages and metadata and pulls out the name, email, company and phone, the question in the visitor's own words, and a short summary for the rep.
  3. Email given? A conversation with no email skips HubSpot and goes to the sales channel as it is.
  4. Find the contact in HubSpot Looks the email up in HubSpot. A known contact gets the question and any new details, with the question in the contact's Message field.
  5. Create the contact Someone HubSpot doesn't have yet is created as a lead with their details and the question.
  6. Tell sales in Slack Posts who the lead is, what they asked the chatbot and the summary in your sales channel, so the rep starts the call already knowing the question.

Before you turn it on

  • Enter your Denser AI chatbot ID and API key (in the chatbot's API channel, turn on Enable API and generate a key). Connect your HubSpot and Slack accounts.
  • Add your Anthropic key in the flow setting Anthropic key.
  • Pick your sales channel in Tell sales in Slack and Post the lead without an email.
  • Denser AI's lead trigger checks on a schedule, every 5 minutes here. Change the interval in New lead in Denser AI.