Errors to Slack

Plugin published by Kaan Kilic | 3,652 downloads

A Jovo plugin to automatically send error messages to a Slack webhook

Installation

If you are using the Jovo Framework version < 2.0.0, please checkout the v1 branch here

In your Jovo project:

To create enable incoming webhooks for your Slack follow this guide.

Customize

NOTE: The webhookUrl is a required parameter

The plugin sends the error message as an attachement. Every parameter is customizable except the ts parameter.

You can use the config.js file to add the changes in the following format:

If you don't customize anything, these default values will be used:

Checkout the official documentation for more information on each parameter: Docs

You can also override the channel/user the message should be sent to:

Jovo Plugin Slack Error

Manual Logs

You can manually log stuff using the logError(jovo: Jovo, error: string | Error) and logMessage(jovo: Jovo, msg: string | Error) functions. You always have to parse the jovo object. Inside your intents it would look like this:

The logError() function will use the same design as the other error messages. logMessage() will log the message as simple text.

License

MIT

Changelog

3.1.0

Feature

  • Slack message now also includes a link to the cloudwatch logs.

Bug

  • awaits the HTTP request's response now.

Join Our Newsletter

Be the first to get our free tutorials, courses, and other resources for voice app developers.