Automatically Associate a Contact and Company with a Ticket Based on Logged Email or Activity

KBrandt0
参加者

Description:
We want to set up a workflow in HubSpot that automatically links a contact and company to the logged ticket based on a logged email or activity—such as meeting notes, calls, or chats. This would ensure that tickets always have the right associations without manual input.

Requirements:

  • When an email is logged on a ticket, the system should automatically associate that contact and company with that ticket.

We’d like to know if this can be done via a workflow—or if another approach, such as a custom integration, would be better?

Hope someone can help us! 

1件の承認済みベストアンサー
PamCotton
解決策
元HubSpot社員
元HubSpot社員

Hey @KBrandt0, thank you for posting in our Community.

 

Currently, HubSpot workflows alone can’t directly associate contacts and companies with tickets based on logged emails or activities. 

 

However, you can create a workflow that triggers when a ticket is created and then attempts to associate it with the contact based on email activity. 

 

For more dynamic or retroactive associations, a custom integration using the HubSpot API (associating tickets with contacts and companies programmatically) would be the best approach.

 

To our top experts, @franksteiner79 @TomM2 any other recommendations for @KBrandt0 matter?

 

Thank you,

Pam

 

元の投稿で解決策を見る

4件の返信 4
PamCotton
解決策
元HubSpot社員
元HubSpot社員

Hey @KBrandt0, thank you for posting in our Community.

 

Currently, HubSpot workflows alone can’t directly associate contacts and companies with tickets based on logged emails or activities. 

 

However, you can create a workflow that triggers when a ticket is created and then attempts to associate it with the contact based on email activity. 

 

For more dynamic or retroactive associations, a custom integration using the HubSpot API (associating tickets with contacts and companies programmatically) would be the best approach.

 

To our top experts, @franksteiner79 @TomM2 any other recommendations for @KBrandt0 matter?

 

Thank you,

Pam

 

KBiduk
参加者

Hi Pam,
I'm facing the same issue with our ticket system. How can we have contacts automatically associated when we either email out or an email comes in to an existing ticket?
We often have to reach out to other stakeholders to help answer customer queries. We're finding that because the contacts don't automatically associate, responses are being missed.

0 いいね!
danmoyle
最優秀メンバー | Platinum Partner
最優秀メンバー | Platinum Partner

Welcome to the Community @KBiduk. If I understand what you're asking, it won't work with standard HubSpot features because it will only auto-associate the original sender’s contact to the ticket. You can't automatically add all other stakeholders on the thread (CC, BCC, forwarded participants) to the ticket out of the box. To get closer to what you want, you might be able to lean on Conversations + ticket settings, plus either process changes or custom code/API.

 

How I understand basic HubSpot features in this regard... So, when an email is sent from, or received in, a connected conversations/help desk inbox and is associated with a ticket, HubSpot automatically associates that email activity with the ticket and the sender’s contact record. Makes sense. Then by default, only the original sender is automatically linked as a contact on the ticket; CC’d or later-added recipients are not automatically turned into associated contacts on that ticket.

 

So it would make sense based on that, that you're running into a limit. There's no native setting today that says “for every email on this ticket, associate all participants as contacts on this ticket.” And workflows cannot directly say “whenever an email is logged on a ticket, associate all email participants as contacts with that ticket” without custom code or an external integration.

 

If you're looking for help with a basic solution, here's some inspiration for beavior workarounds (not technical HubSpot coding or tools). These won’t be perfect automation, but they reduce misses:

 

Use Help Desk/Conversations as the hub: Ensure all support mail is going through a connected conversations/help desk inbox and tickets are created from that inbox, so all replies stay threaded to the same ticket instead of spawning new ones.

 

Train agents to manually associate stakeholders as they appear: In the ticket’s right sidebar, add additional contacts as soon as they’re CC’d or appear in the thread; this ensures future ticket emails can be associated with those contacts as well.

 

Use forms and ticket workflows for known extra contacts: If you often know a second stakeholder at ticket creation (“CC manager” field), create that second contact and associate it to the ticket via a ticket‑based workflow using “Create record” and associations.

 

If you want to explore technical workarounds, you have some options with Data Hub or APIs. If you have Operations Hub Pro/Enterprise or dev resources, you can get much closer to true automatic association.

 

With custom‑coded workflow in HubSpot you can use a ticket‑based workflow with a custom code action that:

  • Pulls email activities associated with the ticket.
  • Extracts all email addresses on those messages.
  • Checks if they exist as contacts; creates them if needed.
  • Uses the Associations API to associate those contacts to the ticket.

Or if you're open to external integration or middleware options, I think a small app (or Make/Zapier/Tray flow calling the HubSpot API) can periodically look at ticket conversations, parse participants, and associate them programmatically in the same way.

 

I found these tips to help reduce missed responses for now. Again, not a perfect solution, but these help with how HubSpot currently works. 


Make sure all outbound stakeholder outreach happens from the ticket’s email composer in Help Desk/Conversations, not from personal inboxes, so everything lands on the ticket thread.

 

Add a simple internal process: “Anytime you add or CC a new stakeholder, immediately add them as an associated contact on the ticket.” This takes a few seconds and ensures visibility for everyone working the ticket.

 

If you have Data Hub Pro, prioritize a small custom‑code workflow to auto‑associate email participants; it directly addresses the “responses are being missed because contacts aren’t associated” issue.

 

I hope that helps you find the right solution for your use case! 

 

Did my answer help? Please "mark as a solution" to help others find answers. Plus I really appreciate it!

I use all tools available to help answer questions. This may include other Community posts, search engines, and generative AI search tools. But I always use my experience and my own brain to make it human.


linkedininstagram

Dan Moyle

Solutions Consultant

Digital Reach Online Solutions
emailAddress
daniel@digitalreachopm.com
website
https://www.digitalreachos.com/
0 いいね!
BérangèreL
コミュニティーマネージャー
コミュニティーマネージャー

Hi @KBiduk and a warm welcome from the HubSpot Community!

Thank you so much for sharing your experience! While it might not be an exact match for what you need, I think you’ll find some useful ideas in this similar thread "Create 2nd contact and associate it with the ticket" featuring solutions from @karstenkoehler and @hphan-trlaw might give you some ideas.

Let's consult our Top Experts: Hi @danmoyle, @d-lupo and @tverdokhlib1 do you have suggestions to help @KBiduk, please?

Thanks so much and have a wonderful day!
Bérangère





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More