https://linen.dev logo
Notion Trigger
# support-forum
m
Hey, how should we setup notion triggers? I haven't found docs to set that up. the image was just for testing trying to guess the name of the field for the interval (as that's one of the required fields to create an trigger in composio for notion) https://cdn.discordapp.com/attachments/1440457435348336731/1440457435562377389/image.png?ex=693d3547&is=693be3c7&hm=9c15d118e91b5e1b9d9cf95d8f431a5e074f6c506768c6451a3b95bd857a2a87&
u
Hey @Mr. Roiz, you can get the required fields for all Notion triggers using [This](https://docs.composio.dev/api-reference/triggers/get-triggers-types) endpoint. Example CUrl:
Copy code
curl -G https://backend.composio.dev/api/v3/triggers_types \
     -H "x-api-key: <api-key>" \
     -d toolkit_versions=latest \
     -d toolkit_slugs=notion
Also, the triggerConfig could be different for each trigger, you can check it with the above endpoint. Here's an example snippet:
Copy code
const trigger = await composio.triggers.create(
    "<user-id>", 
    'NOTION_ALL_PAGE_EVENTS_TRIGGER', 
    {
        triggerConfig: {
            interval: 1
        }
    }
);
Let me know if you need any help or if you face any issues.
m
I just checked the parameters, before we had it with the
Copy code
triggerConfig
with an empty object, but the trigger was not working or sending any events we're using
Copy code
NOTION_ALL_PAGE_EVENTS_TRIGGER
, we thought that the interval does not have a default value so we tried to add that interval manually, but still it is not sending events https://cdn.discordapp.com/attachments/1440457435348336731/1440693147611959457/image.png?ex=691f158d&is=691dc40d&hm=497577c2780cd4fc40fd71d473859951b35b6d5bb5b452825a6cfabf457433b2&
u
@Mr. Roiz, we are checking this.
m
Thanks! keep me posted, pls
Hey @Uday any news?
u
Hey @Mr. Roiz, cannot give you an ETA rn. Let me check with the team and get back.
m
hi @Uday any updates?
u
Hey @Mr. Roiz, team is still working on a fix. I'll keep you updated.
Hey @Mr. Roiz, the fix is live. Lmk of you face any issues.