Automatically accept google calendar invites from my wife

Welcome to the Make community!

Yes, that is possible. You’ll need a minimum of two modules:

Screenshot_2024-08-15_140842

Note: PATCH does not override fields that are not included in the payload, so you do not need to reinsert all the other event details.

This is just an example. Your final solution may or may not look like this depending on your requirements.

For more information, see

Module Export

You can copy and paste this module export into your scenario. This will paste the modules shown in my screenshots above.

  1. Copy the JSON code below by clicking the copy button when you mouseover the top-right of the code block

  2. Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the canvas.

  3. Click on each imported module and save it for validation. You may be prompted to remap some variables and connections.

Click to Expand Module Export Code

JSON - Copy and Paste this directly in the scenario editor

{"subflows":[{"flow":[{"id":1,"module":"google-calendar:watchEvents","version":5,"parameters":{"__IMTCONN__":95013,"calendar":"my-calendar@example.com","select":"create","showDeleted":false,"q":"","eventTypes":["default"],"limit":1},"mapper":{},"metadata":{"designer":{"x":0,"y":0,"name":"New Event"},"parameters":[{"name":"__IMTCONN__","type":"account:google","label":"Connection","required":true},{"name":"calendar","type":"select","label":"Calendar","required":true},{"name":"select","type":"select","label":"Watch Events","required":true,"validate":{"enum":["create","update","start","end"]}},{"name":"showDeleted","type":"boolean","label":"Show deleted events","required":true},{"name":"q","type":"text","label":"Query"},{"name":"eventTypes","type":"select","label":"Event Types","multiple":true,"validate":{"enum":["default","fromGmail","focusTime","outOfOffice","workingLocation"]}},{"name":"limit","type":"uinteger","label":"Limit","required":true}]}},{"id":3,"module":"google-calendar:makeApiCall","version":5,"parameters":{"__IMTCONN__":95013},"filter":{"name":"wife only","conditions":[[{"a":"{{1.creator.email}}","o":"text:equal","b":"wife@family.com"}]]},"mapper":{"url":"/v3/calendars/{{map(1.attendees; \"email\"; \"self\"; \"true\")}}/events/{{1.id}}","method":"PATCH","headers":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"attendees\": [\n    {\n      \"self\": true,\n      \"email\": \"{{map(1.attendees; \"email\"; \"self\"; \"true\")}}\",\n      \"responseStatus\": \"accepted\"\n    }\n  ],\n  \"attendeesOmitted\": true\n}"},"metadata":{"designer":{"x":300,"y":0,"name":"Accept Event"},"parameters":[{"name":"__IMTCONN__","type":"account:google","label":"Connection","required":true}]}}]}],"metadata":{"version":1}}

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

3 Likes