Include {{Unsubscribe}} as string in request body

I’m automating the creation of email templates for our email blasts, and I’m using Pardot as the email tool. Pardot requires the {{Unsubscribe}} tag to be included in the email body to handle unsubscribe functionality.

However, when I include {{Unsubscribe}} in n8n, it tries to interpret it as JavaScript and outputs [undefined]. How can I escape the {{}} syntax so that n8n treats it as a plain string instead of JavaScript?

Information on your n8n setup

  • n8n version: 1.74.3
  • Database (default: SQLite): SQLite
  • Running n8n via (Docker, npm, n8n cloud, desktop app):Docker

Welcome to the community @Jens_Leweling !

Tip for sharing information

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

That implies to any JSON output you would like to share with us.

Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!


Stringify your body first. For example,

1 Like

@ihortom thank you so much for your quick response.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.