mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-25 08:48:13 +02:00
feat: add posthog events (#231)
* feat: add posthog events * fix: workflow_duplicated event * chore: add events to enum
This commit is contained in:
parent
bb5f56bfb7
commit
3f19a16e7f
24 changed files with 450 additions and 93 deletions
15
api/enums.py
15
api/enums.py
|
|
@ -140,3 +140,18 @@ class ToolStatus(Enum):
|
|||
ACTIVE = "active" # Tool is available for use
|
||||
ARCHIVED = "archived" # Tool is soft-deleted
|
||||
DRAFT = "draft" # Tool is being configured (not ready for use)
|
||||
|
||||
|
||||
class PostHogEvent(str, Enum):
|
||||
"""PostHog event names — backend events only."""
|
||||
|
||||
WORKFLOW_CREATED = "workflow_created"
|
||||
WORKFLOW_PUBLISHED = "workflow_published"
|
||||
WORKFLOW_DUPLICATED = "workflow_duplicated"
|
||||
CALL_STARTED = "call_started"
|
||||
CALL_COMPLETED = "call_completed"
|
||||
CALL_FAILED = "call_failed"
|
||||
TELEPHONY_CONFIGURED = "telephony_configured"
|
||||
KNOWLEDGE_BASE_CREATED = "knowledge_base_created"
|
||||
TOOL_CREATED = "tool_created"
|
||||
AGENT_EMBEDDED = "agent_embedded"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue