$return_value.url in Discord embed

Hi, I’m trying to use an $return_value.url in a Discord embed and I can’t seem to get it to work.

I am currently using a basic example but can’t seem to get the hyperlink to work in and embed
Example:

{{ [{“description”:" [hyperlink(steps.create_image_from_html.$return_value.url) "}] }}

steps.create_image_from_html.$return_value.url works in a message but not embed. Anyone knows how it works?

Just ignore the missing “]” after the hyperlink, removed it so that it doesn’t actually hyperlink in this post.

Figured it out, needed a prior nodejs step that added the embeds

Example, in-case anyone else has the same problem in the future. Then just call this step in your discord embed field :slight_smile:

export default defineComponent({
async run({ steps, $ }) {
let embeds = [
{
“author”: {
“name”: “Birdie♫”,
“url”: “https://www.reddit.com/r/cats/”,
“icon_url”: “https://i.imgur.com/R66g1Pe.jpg
},
“title”: “Title”,
“url”: “https://google.com/”,
“description”: “Text message. You can use Markdown here. Italic bold underline strikeout hyperlink code”,
“color”: 15258703,
“fields”: [
{
“name”: “Text”,
“value”: “More text”,
“inline”: true
},
{
“name”: “Even more text”,
“value”: “Yup”,
“inline”: true
},
{
“name”: “Use \"inline\": true parameter, if you want to display fields in the same line.”,
“value”: “okay…”
},
{
“name”: “Thanks!”,
“value”: “You’re welcome :wink:
}
],
“thumbnail”: {
“url”: “https://upload.wikimedia.org/wikipedia/commons/3/38/4-Nature-Wallpapers-2014-1_ukaavUI.jpg
},
“image”: {
“url”: “https://upload.wikimedia.org/wikipedia/commons/5/5a/A_picture_from_China_every_day_108.jpg
},
“footer”: {
“text”: “Woah! So cool! :smirk:”,
“icon_url”: “Imgur: The magic of the Internet
}
}
];
return embeds;
},
})

2 Likes