Help with Dynamic Email Input in HTTP Request Node Failing with "No Execution Data Available

Hi everyone,

I’m trying to dynamically pass an email value in an HTTP Request node using the following expression in the body parameters:

={{ $fromAI("email", "ask for the user email") }}

The goal is for the flow to request the email dynamically (e.g., using AI or another method) and then send it in the user_email field to my Bubble API. However, whenever I use this expression, I get the following error:

{
  "errorMessage": "No execution data available",
  "errorDetails": {},
  "n8nDetails": {
    "itemIndex": 0,
    "runIndex": 0,
    "parameter": "parametersBody.values",
    "time": "23/01/2025, 17:06:56",
    "n8nVersion": "1.74.3 (Cloud)",
    "binaryDataMode": "filesystem",
    "cause": [
      {
        "name": "Type",
        "valueProvider": "fieldValue",
        "value": "purchase_info"
      },
      {
        "name": "user_email",
        "valueProvider": "fieldValue",
        "value": "={{ $fromAI(\"email\", \"ask for the user email\") }}"
      }
    ]
  }
}

However, if I replace the user_email value with a static email (e.g., [email protected]), the flow works perfectly.

Here’s a quick breakdown of my setup:

  1. Node: HTTP Request (POST Method)
  2. API: Bubble.io endpoint
  3. Headers: Authorization (Bearer token)
  4. Body Parameters:
  • Type → Static value: purchase_info
  • user_email → Dynamic value: ={{ $fromAI("email", "ask for the user email") }}

I suspect the problem is that {{ $fromAI(...) }} is not resolving properly, but I’m not sure how to dynamically collect and inject the email value into the body.

I’ve tried:

  • Using the expression as is
  • Testing with a static email (works perfectly)
  • Checking execution data logs, which suggest the user_email value is unavailable.

Any ideas on how to properly collect the email dynamically or resolve this issue? Should I use a Set or Code node, or is there a better way to make this work with AI-like inputs?

Thank you in advance for your help!

Information on your n8n setup

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

can you share your workflow JSON code inside a code block, please?

like this

But I think the issue is the character =

You don’t have to use that character in an expression.
Just {{ $fromAI("email", "ask for the user email") }}

Also try to change that description to:
{{ $fromAI("email", "the user email","string") }}

And instruct the AI in the prompt to ask for the user email, if that’s the case.

Additionally, make sure you are actually using an expression, by selecting the Expression tab

.

:muscle: If my reply solves your problem, please remember to mark it as a solution.

Hey @Sylvio_Avilla were you able to solve this issue?

Hello,

I managed to solve the issue, but in a different way. It turns out that the $fromAI function wasn’t working in this particular scenario. Instead, I used a {{placeholder}} and instructed the AI to replace it.

I’m not entirely sure why this approach worked differently, but it did the trick in this case.

Thanks for your suggestions anyway!

1 Like

Yeah!! I also noticed the HTTP Request node asks for placeholders instead! Weird

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