Hey Guys, I’m trying to push this message to slack:
information:
First name: {{ $json["body"]["firstName"] }}
Last Name: {{ $json["body"]["lastName"] }}
Company Name: {{ $json["body"]["companyName"] }}
Email: {{ $json["body"]["email"] }}
Phone number: {{ $json["body"]["phone"] }}
LinkedIn URL: {{ $json["body"]["LinkedIn URL"] }}
but its not filling in the actual values, does anyone have a suggestion what im doing wrong?
input data:
removed input data, potentially sensitive XD
]"output":[
{
"ok":true,
"channel":“C049JABNFGE”,
"ts":1668002354.223859,
"message":{
"bot_id":“B049F50A487”,
"type":"message",
"text":"“New lead or possible conversation!":"rocket":"information":"First name":{
{
"$json"[
"body"
][
"firstName"
]
}
}"Last Name":{
{
"$json"[
"body"
][
"lastName"
]
}
}"Company Name":{
{
"$json"[
"body"
][
"companyName"
]
}
}"Email":{
{
"$json"[
"body"
][
"email"
]
}
}"Phone number":{
{
"$json"[
"body"
][
"phone"
]
}
}"LinkedIn URL":{
{
"$json"[
"body"
][
"LinkedIn URL"
]
}
}"Please follow up with this lead as soon as possible for the best results.”",
"user":“U049QQBQRMZ”,
"ts":1668002354.223859,
"app_id":“A016X0AT6QL”,
"blocks":[
{
"type":"rich_text",
"block_id":“7Hc”,
"elements":[
{
"type":"rich_text_section",
"elements":[
{
"type":"text",
"text":"New lead or possible conversation! "
},
{
"type":"emoji",
"name":"rocket",
"unicode":“1f680”
},
{
"type":"text",
"text":" information: First name: {{ $json[“body”][“firstName”] }} Last Name: {{ $json[“body”][“lastName”] }} Company Name: {{ $json[“body”][“companyName”] }} Email: {{ $json[“body”][“email”] }} Phone number: {{ $json[“body”][“phone”] }} LinkedIn URL: {{ $json[“body”][“LinkedIn URL”] }} Please follow up with this lead as soon as possible for the best results."
}
]
}
]
}
],
"team":“T049MUHS30D”,
"bot_profile":{
"id":“B049F50A487”,
"app_id":“A016X0AT6QL”,
"name":“n8n.cloud”,
"icons":{
"image_36":"“https"://avatars.slack-edge.com/2020-09-14/1367579227572_66b01b9e837bfefc79ac_36.png”,
"image_48":"“https"://avatars.slack-edge.com/2020-09-14/1367579227572_66b01b9e837bfefc79ac_48.png”,
"image_72":"“https"://avatars.slack-edge.com/2020-09-14/1367579227572_66b01b9e837bfefc79ac_72.png”
},
"deleted":false,
"updated":1667854679,
"team_id":“T049MUHS30D”
}
}
}
]
- **Running n8n via cloud