vinman8866
vinman8866
NNovu
Created by vinman8866 on 7/10/2024 in #💬│support
Slack Message with Blocks configuration
don't worry about the URL encoding issue - i've managed to resolve it by finding another post in the support channel
24 replies
NNovu
Created by vinman8866 on 7/10/2024 in #💬│support
Slack Message with Blocks configuration
Hi @Pawan Jain - any update on this? I also have another issue where using the original cloud framework with a payload - I am seeing "=" in a URL be encoded to "=" i can see this is happening when i run my trigger programatically or via the trigger notification in the cloud UI. is this happening in Novu or in Slack? an example URL and it's conversion is: https://myapp.com/dashboard/events?event=611399accdb30ba8f48ea2ff1912c633 https://myapp.com/dashboard/events?event=611399accdb30ba8f48ea2ff1912c633
24 replies
NNovu
Created by vinman8866 on 7/10/2024 in #💬│support
Slack Message with Blocks configuration
Thank you
24 replies
NNovu
Created by vinman8866 on 7/10/2024 in #💬│support
Slack Message with Blocks configuration
Just as a note @Pawan Jain - the slack provider etc. was working with the original novu cloud setup. It has stopped working now trying to implement the workflow in novu echo. thank you for your help
24 replies
NNovu
Created by vinman8866 on 7/10/2024 in #💬│support
Slack Message with Blocks configuration
Here is the workflow:
import { workflow } from "@novu/framework";

export const euniceMonitorSlack = workflow(
"eunice-monitor",
async ({ step, payload }) => {
await step.chat(
"send-chat",
async () => {
return {
body: "A new post has been created",
};
},
{
providers: {
slack: ({ inputs }) => ({
text: "A new post has been created",
blocks: [
{
type: "section",
text: {
type: "mrkdwn",
text: "A new post has been created",
},
},
],
}),
},
}
);
}
);
import { workflow } from "@novu/framework";

export const euniceMonitorSlack = workflow(
"eunice-monitor",
async ({ step, payload }) => {
await step.chat(
"send-chat",
async () => {
return {
body: "A new post has been created",
};
},
{
providers: {
slack: ({ inputs }) => ({
text: "A new post has been created",
blocks: [
{
type: "section",
text: {
type: "mrkdwn",
text: "A new post has been created",
},
},
],
}),
},
}
);
}
);
24 replies
NNovu
Created by vinman8866 on 7/10/2024 in #💬│support
Slack Message with Blocks configuration
"headers": { "Accept": "application/json, text/plain, /", "Content-Type": "application/json", "User-Agent": "axios/1.6.7", "Content-Length": "68", "Accept-Encoding": "gzip, compress, deflate, br" }, "method": "post", "url": "https://hooks.slack.com/services/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", "data": "{"text":"A new post has been created","blocks":[{"type":"section"}]}" }, "code": "ERR_BAD_REQUEST", "status": 400 }
24 replies
NNovu
Created by vinman8866 on 7/10/2024 in #💬│support
Slack Message with Blocks configuration
{ "message": "Request failed with status code 400", "name": "AxiosError", "stack": "AxiosError: Request failed with status code 400\n at settle (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/axios/dist/node/axios.cjs:1967:12)\n at IncomingMessage.handleStreamEnd (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/axios/dist/node/axios.cjs:3066:11)\n at IncomingMessage.emit (node:events:531:35)\n at IncomingMessage.emit (node:domain:488:12)\n at LegacyContextManager.runInContext (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/newrelic/lib/context-manager/legacy-context-manager.js:59:23)\n at IncomingMessage.wrapped (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/newrelic/lib/transaction/tracer/index.js:203:37)\n at IncomingMessage.wrappedResponseEmit (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/newrelic/lib/instrumentation/core/http-outbound.js:313:24)\n at endReadableNT (node:internal/streams/readable:1696:12)\n at runInContextCb (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/newrelic/lib/shim/shim.js:1315:22)\n at LegacyContextManager.runInContext (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/newrelic/lib/context-manager/legacy-context-manager.js:59:23)\n at Axios.request (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/axios/dist/node/axios.cjs:3877:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)", "config": { "transitional": { "silentJSONParsing": true, "forcedJSONParsing": true, "clarifyTimeoutError": false }, "adapter": [ "xhr", "http" ], "transformRequest": [ null ], "transformResponse": [ null ], "timeout": 0, "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN", "maxContentLength": -1, "maxBodyLength": -1, "env": {},
24 replies
NNovu
Created by vinman8866 on 7/10/2024 in #💬│support
Slack Message with Blocks configuration
Here is the error in two messages due to the limit of characters
24 replies
NNovu
Created by vinman8866 on 7/10/2024 in #💬│support
Slack Message with Blocks configuration
Hi @Pawan Jain - thank you. I am now receiving an unexpected provider error when I try to use the default slack blocks message you provided in the docs and trying to send to the slack provider
24 replies
NNovu
Created by vinman8866 on 7/10/2024 in #💬│support
Slack Message with Blocks configuration
Is there any documentation for users who want to migrate their current implementation with Novu Cloud to the new Novu Echo Framework? Seems a limitation in documentation @Pawan Jain
24 replies
NNovu
Created by vinman8866 on 7/10/2024 in #💬│support
Slack Message with Blocks configuration
In the current implementation I have above, e.g., in the original way of defining a workflow in novu cloud, how do I add bold or formatting to the message
24 replies
NNovu
Created by vinman8866 on 7/10/2024 in #💬│support
Slack Message with Blocks configuration
@Ask Inkeep If the easiest way to do this is through the Novu Echo framework. Can you show me an example of a workflow with a chat step using slack with blocks and hyperlinks etc.?
24 replies
NNovu
Created by vinman8866 on 10/12/2023 in #💬│support
AWS SES Email Unexpected Provider Error
just as an update, i updated the resource to the following and it now works: "arn:aws:ses:eu-west-2:<ACCOUNT>:identity/*
16 replies
NNovu
Created by vinman8866 on 10/12/2023 in #💬│support
AWS SES Email Unexpected Provider Error
thank you
16 replies
NNovu
Created by vinman8866 on 10/12/2023 in #💬│support
AWS SES Email Unexpected Provider Error
In addition to the identity - do you know what other resources need to be enabled?
16 replies
NNovu
Created by vinman8866 on 10/12/2023 in #💬│support
AWS SES Email Unexpected Provider Error
changing it from: "Resource": [ "arn:aws:ses:eu-west-2:<ACCOUNT>:identity/<THE-EMAIL-ADDRESS>" ] to: "Resource": [ "*" ] makes it work - but I want to be more restrictive
16 replies
NNovu
Created by vinman8866 on 10/12/2023 in #💬│support
AWS SES Email Unexpected Provider Error
okay so the issue is specifically on the resource in the IAM policy
16 replies
NNovu
Created by vinman8866 on 10/12/2023 in #💬│support
AWS SES Email Unexpected Provider Error
I don't see anything in the activity feed - I found this error by using the chrome dev tools
16 replies
NNovu
Created by vinman8866 on 10/12/2023 in #💬│support
AWS SES Email Unexpected Provider Error
Thanks for the support @Pawan Jain
16 replies
NNovu
Created by vinman8866 on 10/12/2023 in #💬│support
AWS SES Email Unexpected Provider Error
I tested out with a different user (with admin privileges) and it works. So I just need a clearer idea of what IAM actions/policy needs to be provided to support emails
16 replies