Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix: trigger snippet formatting

angrybayblade219d08bf84d8
diff --git a/fern/docs/triggers/using-triggers.mdx b/fern/docs/triggers/using-triggers.mdx
index e585840bd..612e9b72d 100644
--- a/fern/docs/triggers/using-triggers.mdx
+++ b/fern/docs/triggers/using-triggers.mdx
@@ -173,21 +173,15 @@ await composio.triggers.subscribe(
)
```
```python Python maxLines=60 wordWrap
-user_id = uuid.uuid4()
+user_id = "[email protected]"
+
# Subscribe to a trigger
subscription = composio.triggers.subscribe()
-# Define a handler
- toolkit="GITHUB",
- user_id=user_id,
- # trigger_slug="GITHUB_STAR_ADDED_EVENT"
- # auth_config_id="ac_1234567890",
- # trigger_id="ti_So9EQf8XnAcy",
-)
+# Define a handler
[email protected](toolkit="GITHUB", user_id=user_id)
def handle_github_event(data):
-print(data)
-
+ print(data)
```
</CodeGroup>