How to use a variable within a text variable

I have a variable that has a prompt and within that prompt there is a variable from n8n, how to show it in n8n, but it remains as text, how do I show it as a variable

Debug info

core

  • n8nVersion: 1.50.0
  • platform: docker (self-hosted)
  • nodeJsVersion: 20.15.0
  • database: postgres
  • executionMode: scaling
  • concurrency: -1
  • license: community
  • consumerId: unknown

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: memory

pruning

  • enabled: true
  • maxAge: 72 hours
  • maxCount: 10000 executions

security

  • blockFileAccessToN8nFiles: false

Generated at: 2024-07-20T16:14:26.049Z

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

@Ruan17 , the issue you are trying resolve is not quite clear to me. Thus, I will try to cover all the scenarios I can think of. Below is the demonstration how to handle n8n variables inside the text.

Depending on where you stand the solutions are

Use expression making sure you turned it on

Evaluate text as an expression

Using $evaluateExpression() (see Convenience methods | n8n Docs).

Excellent, $evaluateExpression worked perfectly, I had never seen this function in n8n, and thank you for sending the support page, I will study it again, I thought I hadn’t updated it and taking advantage of it, do you have any links that help make better prompts within n8n?

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