Skip to content
Merged
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
12 changes: 12 additions & 0 deletions .claude/skills/zendesk-stuck-chat/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ tr = s.request("GET", f"https://{sd}.zendesk.com/api/v2/triggers/64618370939417.
print(tr["active"], tr["conditions"])
```

To set it, send the actions too: a PUT without them is a 422, "Trigger must contain at least one
action".

```python
s.request("PUT", f"https://{sd}.zendesk.com/api/v2/triggers/64618370939417.json", json={"trigger": {
"active": True,
"conditions": {"all": [
{"field": "comment_includes_word", "operator": "includes", "value": "endsession"},
{"field": "comment_is_public", "operator": "is", "value": "false"}], "any": []},
"actions": [{"field": "end_session", "value": "End Session"}]}})
```

Then add the note:

```python
Expand Down