Hi everyone! ![]()
I’ve recently been testing the capabilities of the AI Data Agent in HubSpot. I set up a workflow that verifies logged one-to-one emails for either quote requests or delivery issue reports. So far, the AI is doing great—I haven’t noticed any major errors or hallucinations.
However, I’d like to consult my process with you.
How my current workflow operates:
- Trigger (Testing phase): Logging an email assigned to a specific user.
- Step 1 (AI Analysis): The Data Agent examines the email subject and body, then routes it to one of two branches.
Branch 1: Sales Inquiry
- The system creates a new Deal associated with the Contact. It copies the Contact owner and sets them as the Deal owner.
- The Data Agent re-analyzes the email, comparing it with the text in the Contact property - “Offer”; (our standard offer is placed ther - text property).
- Next a Note is created on the newly created Deal with an AI-generated draft response for the customer.
Branch 2: Delivery Issue Report
- The Data Agent re-examines the email, this time looking for a tracking or order number. Then, the AI looks for a match for this data in the names, descriptions, or properties of existing Deals.
- Result: The Data Agent returns the ID and name of the matched Deal, than a Note containing this information is created on the Contact.
**
My questions for the community:**
1. Is this workflow built optimally? Do you see any areas where I could optimize this (e.g., avoiding calling the Data Agent twice), or are there other native features/tools I should use instead of the current setup? I didn’t use the Customer Agent because I don’t want the AI replying directly to customers.
2.Is storing the offer in a text property optimal(Branch1)? Currently, I am using a custom text property where our standard offer is pasted as text. The Data Agent with Data Tokens analyzes this property very well and generates highly accurate responses based on it. However, I’m wondering if this is the most optimal and scalable approach in HubSpot, or if I should be storing and referencing this offer data differently? I’ve tried using a file property with the .pdf file, but it doesn’t work at all.
3. Using the returned ID to change a property (Branch 2):
Since the Data Agent correctly returns the ID of the matched Deal in the second branch, am I able to create an action in the workflow that dynamically uses this knowledge (this specific ID) to update a property on that Deal—e.g., setting a property like “Delivery issue reported - Yes”? How can I technically pass this ID to the record update action?
Thanks in advance for any tips!