Layot Card GoogleChats

Hello everyone, everything good?
Does anyone already work with GoogleChats?
My problem is currently very “simple”, I’m making a birthday party for the company, but the image is huge which means that the congratulations writing doesn’t even appear, does anyone know how to resize the card?
Below is the Json of the current card structure that works as per the example below

Code:
{
“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”
}
}
]
}
]
}
]
}

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:

Application is running in the Cloud

Hi @Pedro_Malaquias

Have you tried anything using the Edit Image Node? What’s the source of your images?

The images are hosted in a bucket, but the default image dimensions are large (1080x1350).
But as I said above, the message works and loads the image, I would like to try to render something smaller, is there any way or would I have to reduce the dimensions of the image?

I noticed that what is happening is that the message text field becomes very large in terms of wights, do you have any idea how I could do this to break this text in line?
The “solution” was to break it into two messages, but I don’t think it’s ideal

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