Hello everyone, everything good?
I’m trying to make a “birthday” flow, everything was working until I started using the variables in the last step, since then it started giving the following error: “ERROR: JSON parameter needs to be a valid JSON”, but the request worked the first time and then I just make an error, can someone help me please, I’ve already reviewed the JSON but without success.
(https://n8n.slideworks.cc/workflow/u5lS9fu7rEQo5bZ4)
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:
The site requesting a login/pass. Can you share the workflow here?
It’s the application link, I don’t understand how to put the workflows, there are some screenshots above, can you check?
Resultado o ultimo passo:
{
“cards”: [
{
“header”: {
“title”: “Hoje temos um aniversariante!”
},
“sections”: [
{
“widgets”: [
{
“textParagraph”: {
“text”: "Parabéns Angelo! Que todos os seus sonhos de realidade virtual se tornem realidade neste novo ano de vida nerd! Feliz aniversário!"
}
},
{
“image”: {
“imageUrl”: https://drive.google.com/file/d/blablabla/view?usp=sharing
,
“altText”: “Nature”
}
}
]
}
]
}
]
}
View please
Copy the workflow with ctrl+a → ctrl+c
Then hit here on the </> button and past the content with ctrl+v
Where are you receiving the body and description values for the first HTTP node? But it won;t cause issues anyway.
Replace the payload of the second HTTP node’s body with that one:
{
"cards": [
{
"header": {
"title": "Hoje temos um aniversariante!"
},
"sections": [
{
"widgets": [
{
"textParagraph": {
"text": {{ JSON.stringify($json.choices[0].message.content) }}
}
},
{
"image": {
"imageUrl": {{ JSON.stringify($('inicio').item.json.image) }},
"altText": "Nature"
}
}
]
}
]
}
]
}
can you explain better?
The first data I force into a json at the “beginning”
maybe AI can’t access the link?
But the image doesn’t come from AI, it comes from Google Drive, and even if it did, I tried with image links directly from Google and I wasn’t successful
The problem with the privacy of the images has already been resolved, thank you for your collaboration!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.