# Triggered based marketing email

**URL:** <https://community.hubspot.com/t/triggered-based-marketing-email/84881>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [July 7, 2023, 9:54am UTC](https://community.hubspot.com/t/triggered-based-marketing-email/84881 "2023-07-07T09:54:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishesh2716](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@Vishesh2716](https://community.hubspot.com/u/Vishesh2716)\
**Post date:** [July 7, 2023, 9:54am UTC](https://community.hubspot.com/t/triggered-based-marketing-email/84881/1 "2023-07-07T09:54:29Z")

</div>

Hi All  
I hope you having a good day.  
I wanted to understand if the below task is achievable via hubspot or should I look for another alternative.  
Task-  
Connect external tool ( company internal advertising platfrom) and based on user interaction on that internal tool. Send action based email.  
Eg

| **S.No** | **Email trigger** | **User attributes** |
| --- | --- | --- |
| 1 | Successful signup | \<email\> |
| 2 | Payment successful | \<email\>, \<campaign\_name\> |
| 3 | Payment Failed | \<email\> |

Is there any way to create these triggers via any specifc API.

---

<div class="post-metadata">

**Author:** ![Levi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/levi/32/21492_2.png) [@Levi](https://community.hubspot.com/u/Levi)\
**Post date:** [July 7, 2023, 1:24pm UTC](https://community.hubspot.com/t/triggered-based-marketing-email/84881/2 "2023-07-07T13:24:57Z")

</div>

@Vishesh2716 create a custom propertie for your e-mail triggers below, and use that custom propertie as workflow trigger to send the marketing emails. Is that an option? Fill the custom propertie via the update or contact API: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/crm/contacts#endpoint?spec=PATCH-/crm/v3/objects/contacts/%7BcontactId%7D)

| **S.No** | **Email trigger** | **User attributes** |
| --- | --- | --- |
| 1 | Successful signup | \<email\> |
| 2 | Payment successful | \<email\>, \<campaign\_name\> |
| 3 | Payment Failed | \<email\> |

---

<div class="post-metadata">

**Author:** ![Vishesh2716](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@Vishesh2716](https://community.hubspot.com/u/Vishesh2716)\
**Post date:** [July 11, 2023, 4:47am UTC](https://community.hubspot.com/t/triggered-based-marketing-email/84881/3 "2023-07-11T04:47:25Z")

</div>

Hi Levi,  
Thanks for your response. Fetching contacts details from 3rd party application using the above api will resolve one issue. The majour concern is sending email trigger based on user action on the 3rd party tool.  
As the payments ( acceptance , failure ) etc would be hosted on 3rd party tool. Morever if the user is fillng a Know your customer (KYC form) the form is also hosted on the 3rd party tool.  
Is there a way both the tools can interact in a way that triggers could be created. The above shared api is of contacts , are there any other such api which could be used ?

---

<div class="post-metadata">

**Author:** ![Levi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/levi/32/21492_2.png) [@Levi](https://community.hubspot.com/u/Levi)\
**Post date:** [July 11, 2023, 5:24am UTC](https://community.hubspot.com/t/triggered-based-marketing-email/84881/4 "2023-07-11T05:24:03Z")

</div>

Hi @Vishesh2716 , are customer behavorial events an option? It is a marketing enterprise functionality but it should work in your case.

> **[Create custom events codelessly with the event visualizer](https://knowledge.hubspot.com/analytics-tools/create-codeless-custom-behavioral-events)**
>
> Learn how to create a clicked element event and visited URL event to track when an anonymous visitor or HubSpot contact visits a specific URL on your website.
