Google App Script and guide to bridge Habitica tasks complete event as the IFTTT Trigger.
Need to do
- Create a IFTTT applet with
Webhook trigger
. - Deploy provided App Script as web application (inside google's site)
- Point Habitica webhook to App Script's URL.
- Visit https://ifttt.com/create/ to create a new IFTTT Applet
- Select
Webhooks
asIf This
trigger, enterhabitica_task
as the Event name (will use later)
- wire to any
Then That
event (such as log in Calendar)
Support variables (we can't customize the variable name, its a constrains of IFTTT webhook channel):
{{value1}}
as task name{{value2}}
as task complete time{{value3}}
as task note
- Visit https://script.google.com and create a new project named
Habitica
. - Copy and paste the script from this project https://raw.githubusercontent.com/gasolin/habitica-task-to-ifttt/main/habitica-task.gs
- Change
IFTTT_WEBHOOK_KEY
(can be found fromwebhook > settings
https://ifttt.com/maker_webhooks/settings and show as https://maker.ifttt.com/use/[YOUR_KEY]) - If you use a different name, change
IFTTT_EVENT_NAME
. - Follow Deploying a script as a web app, Open Menu and select
Publish > Deploy as Web App
to create as a web app. Copy the URL as the webhook.
- Visit Habitica Settings page, switch to API tab https://habitica.com/user/settings/api
- Paste App Script URL as the webhook, Click the
New
button
Check a task as complete (Score), and find if the integration works. Have Fun!