Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/courier/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import (
_ "github.com/nyaruka/courier/handlers/wechat"
_ "github.com/nyaruka/courier/handlers/whatsapp"
_ "github.com/nyaruka/courier/handlers/yo"
_ "github.com/nyaruka/courier/handlers/zendesk"
_ "github.com/nyaruka/courier/handlers/zenvia"

// load available backends
Expand Down
4 changes: 3 additions & 1 deletion courier.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ port = 8080
# Our database connection string, right now only Postgres is supported
db = "postgres://courier@localhost/courier?sslmode=disable"

# Our redis connection string, path is our database. Rapid Pro uses 15 for the database (or 10 when testing)
# Our redis connection string, path is our database. Rapid Pro uses 15 for the database (or 10 when testing)
redis = "redis://localhost:6379/15"

# Our spool directory for storing messages when Redis is down, this must exist and be writeable
Expand All @@ -39,3 +39,5 @@ s3_media_prefix = "media"

# the DSN token for reporting errors to sentry
sentry_dsn = ""

log_level = "debug"
31 changes: 31 additions & 0 deletions handlers/zendesk/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

# Zendesk Config

A zendesk trigger needs to be configured with the following settings:

## Conditions
- Meet ALL of the following conditions
```
Current user IS (end user)
```
## Action
- Notify Target `https://<your courier url>/c/<your integration uuid>/receive`

- JSON: ```json
{
"id" : "{{ticket.id}}",
"title": "{{ticket.title}}",
"comment" : "{{ticket.latest_comment}}",
"requester_id" : "{{ticket.requester.id}}",
"requester_name": "{{ticket.requester.name}}",
"attachments": [
{% for attachment in ticket.latest_comment.attachments %}
{
"filename": "{{attachment.filename}}",
"url": "{{attachment.url}}"
}
{%if forloop.index != forloop.length%},{% endif %}
{% endfor %}
]
}
```
Loading