APIs & Integrations

SHostetler
Participant

Note text formatting when post via make.com API

SOLVE

I am trying to create neat looking notes which are summaries of a chat gpt response, but something formats into a single line looking mess. I have tried /n and all the work arounds, nothing seems to work?

i would like to be able to have line breaks mainly buit i am unable to do so

0 Upvotes
1 Accepted solution
ArisudanTiwari
Solution
Guide | Gold Partner
Guide | Gold Partner

Note text formatting when post via make.com API

SOLVE

Hi @SHostetler ,


If you're trying to add line breaks in notes sent via Make.com to HubSpot, use <br> tags instead of \n. HubSpot Notes API supports HTML formatting, so tags like <br>, <p>, and <strong> work, but raw \n does not.

In Make.com, use the replace() function to convert newlines like this:
replace(ChatGPT_Response; "\n"; "<br>")
Then map that result to the hs_note_body field in your HubSpot module.

Helpful links:
https://developers.hubspot.com/docs/guides/api/crm/engagements/engagement-details
https://community.hubspot.com/t5/CRM/Importing-notes-with-multiple-lines/m-p/418695
https://community.hubspot.com/t5/APIs-Integrations/Markdown-syntax-to-follow-when-creating-engagemen...

Hope this helps you.

If my reply answered your question, please mark it as a solution to make it easier for others to find.


Cheers!

Arisudan Tiwari
HubSpot Advisor



Grazitti

View solution in original post

1 Reply 1
ArisudanTiwari
Solution
Guide | Gold Partner
Guide | Gold Partner

Note text formatting when post via make.com API

SOLVE

Hi @SHostetler ,


If you're trying to add line breaks in notes sent via Make.com to HubSpot, use <br> tags instead of \n. HubSpot Notes API supports HTML formatting, so tags like <br>, <p>, and <strong> work, but raw \n does not.

In Make.com, use the replace() function to convert newlines like this:
replace(ChatGPT_Response; "\n"; "<br>")
Then map that result to the hs_note_body field in your HubSpot module.

Helpful links:
https://developers.hubspot.com/docs/guides/api/crm/engagements/engagement-details
https://community.hubspot.com/t5/CRM/Importing-notes-with-multiple-lines/m-p/418695
https://community.hubspot.com/t5/APIs-Integrations/Markdown-syntax-to-follow-when-creating-engagemen...

Hope this helps you.

If my reply answered your question, please mark it as a solution to make it easier for others to find.


Cheers!

Arisudan Tiwari
HubSpot Advisor



Grazitti