Hi everyone,
I am trying to dynamically pass an email to my Bubble API using an HTTP Request node. In the body parameters, I use the following expression to collect the user email dynamically:
={{ $fromAI("email", "ask for the user email") }}
However, when I use this expression for the user_email
field, I receive the error below:
{
"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\") }}"
}
]
}
}
If I replace the dynamic expression in user_email
with a static email (e.g., test@example.com
), the flow works as expected. Here’s my current setup:
- HTTP Request node (POST method)
- API: Bubble.io endpoint
- Headers: Authorization (Bearer token)
- Body Parameters:
Type
: Static value purchase_info
user_email
: Dynamic value using the expression above
I suspect that the {{ $fromAI(...) }}
expression isn’t resolving properly. Should I use a Set
or Code
node to capture and inject the email value, or is there a better approach for handling AI-like inputs in this scenario?
Any suggestions are greatly appreciated. Thank you in advance for your help!