Email Reports
- Add Email From: Enter the email address from which the email will be sent. This address will reflect the sender of the email in the recipient’s inbox.
- Add Reply To: Enter the email address to which any reply will be sent. Although optional, it is recommended to add an email address in this field.
- Add CC: Enter the email address of recipients who’ll receive a copy of the email.
- Add BCC: Enter the email address of the recipients that you want to hide from the primary recipient(s).
- Embed Dash Image: In case of a report with one or more dashboards, embed the dashboard as an image directly into the mail by typing {EmbedDashboardImage} tag or clicking this link to insert tag in the current cursor position.
Unsubscribe Links
An unsubscribe link lets each recipient remove themselves from a single report. Unsubscribe is off unless the email body contains the {Unsubscribe} token, so the report owner keeps full control of the recipient list by default.
To add the link, place the cursor in the email body and select Unsubscribe, or type {Unsubscribe}. When the report is sent, the token is replaced with an Unsubscribe from this report link.
- One copy per recipient: With the token in the body, each To, CC, and BCC recipient receives a separate copy of the email with a link tied to their own address. Recipients no longer see each other's addresses.
- Confirmation: The link opens a page in a new tab asking the recipient to confirm. After they select Confirm, their address is removed from the report's To, CC, and BCC lists and a success page is shown. If they close the tab instead, nothing changes. The pages show the email subject, or the report name if there is no subject.
- Scope: Unsubscribing applies only to that report. The recipient still receives other reports and alerts sent to the same address.
- Auto-pause: When the last email recipient unsubscribes, the report is paused, unless it also delivers to Slack, Teams, or a webhook.
- Turning it off: If you remove the token from the body, links in emails already sent stop working and show a page asking the recipient to contact the report owner.
- Unsaved reports: Emails sent before the report is saved do not include the link.
- Tracking: Each unsubscribe is logged as an Unsubscribe Report event with the report, the recipient's address, and the date and time.
Each link is signed for one address, so it cannot be edited to unsubscribe someone else. Opening the link does not remove anyone, which prevents email security scanners that open links automatically from unsubscribing recipients.
Date Tokens Format
Users have the ability to specify the c9_date token in the email report subject and body in the following format:
{$c9_<datetoken><op><number><timeunit>:YYYYMMdd}For example, {$c9_today-1d:YYYYMMdd} will be translated automatically to yesterday”.
If the format is not specified (YYYYMMdd in the example above) - then the default user date-time format is applied.
For more information on supported date tokens and time units, you can refer to the Date Tokens section of our documentation.
Using Date Tokens in Email, Webhook, Slack and Teams
Date tokens can be used in emails, webhooks, Slack, and Teams.
In emails: subject and body.
In case of webhooks: URL to Invoke, Authentication URL, Headers, Auth Headers, and Custom POST body.
In Slack and Teams: Message.
Webhook Reports
content-type of application/pdf for dashboard results;
content-type of text/csv for dataset results;
3. Under Format dropdown, choose the format in which the email report datasets are sent to a webhook. Allows you to choose as an CSV file attachment or JSON payload.
The JSON payload follows the format as:
{"Dataset Name": [
{"id": 1, "customer": "Facebook", "region": "USA"},
{"id": 2, "customer": "Netflix", "region": "USA"},
{"id": 3, "customer": "Amazon", "region": "USA"}
1]}
7. Under Headers, enter any headers for HTTP requests to the “URL to Invoke” endpoint. There can be one header per line.
Knowi also provides the following C9 tokens which can be used to identify the report on the Webhook headers.
- $c9_taskDate$: It denotes the date of the report in the (yyyy-mm-dd) format
- $c9_taskName$: It defines the name of the webhook report. For example: Test webhook
- $c9_taskId$: It denotes any Id of the report. For example: 2971
- $c9_taskType$: This can be either “report” or “alert”
9. Under the Custom POST Body, the user can pass data tokens through the webhook using the POST Body field. Enter a custom post body to be sent out. Data tokens can pass field values from data. If left empty, the post body for the webhook will contain the conditional data saved as JSON or just a default message with the dataset name triggered.
For example,
For sending activity samples, we can type %opened% or %customer%, etc., and it will be replaced with the value of the fields of the first row of triggered data.
Slack Reports
Teams Reports