AI-triage Typeform survey responses into HubSpot and Slack

By General Input

Every new Typeform response gets read by an open-source AI, logged as a HubSpot contact note, and escalated to Slack when it looks negative or urgent.

Integrations

  • Fireworks AI
  • Typeform
  • HubSpot
  • Slack

Type

Agentic Task

Categories

  • Customer Support
  • Product

Build me a feedback-triage agent that runs every time a customer submits a new response to my Typeform survey.

Trigger: Typeform webhook for new responses on a form I will specify.

For each response, do the following in order:

1. Extract the respondent's email, name (if collected), and all free-text answers from the Typeform payload, along with a link back to the response in Typeform.

2. Call Fireworks AI "Create Chat Completion" with a small open-source instruct model (default to a Llama or Qwen 7B/8B instruct model on the OpenAI-compatible chat endpoint, with JSON-mode output requested). Pass the free-text answers and ask the model to return a strict JSON object with these fields: sentiment (one of "positive", "neutral", "negative"), urgency (one of "low", "medium", "high"), topic (one of "billing", "product", "onboarding", "integration", "other"), and summary (a single sentence summarizing the customer's feedback). Hardcode that topic enum in the prompt; do not let the model invent new tags.

3. Call HubSpot "Search Contacts" using the respondent's email as the filter.

4. If a HubSpot contact is found, call HubSpot "Create Note" associated with that contact. The note body should include the one-sentence summary, the sentiment, the urgency, the topic tag, and a link back to the Typeform response.

5. If sentiment is "negative" OR urgency is "high", call Slack "Send a Message" to a channel I will specify (default #cx-escalations). The message should include the customer's name (or email if no name was collected), the one-sentence summary, the sentiment and urgency, the topic tag, a link back to the Typeform response, and the HubSpot contact link if a contact was found in step 3.

If no HubSpot contact matches the email, skip step 4 but still run the Slack escalation in step 5 whenever sentiment is negative or urgency is high. If sentiment is positive or neutral AND urgency is low or medium and a contact exists, the workflow ends after the HubSpot note with no Slack ping.

Integrations: typeform, fireworks-ai, hubspot, slack.

Related prompts

Explore more prompts
Call overdue Xero customers with an AI collections agentWin back LiveChat visitors whose chats went unansweredTurn Mailjet email clicks into ranked HubSpot follow-upsiMessage campaign console with pre-flight checks and delivery boardChat quality review board for LiveChat support leadsA searchable RFP answer library your bid team drafts fromSee which target accounts just started advertising on LinkedInAccount health board that puts product usage next to your CRMLook up a customer's full chat history mid conversationLusha prospecting workbench with credit-safe reveals