magic loops

EventScheduler

Configuration

Set up the necessary variables for this Loop.

Webhook Trigger

Triggered when a webhook is received with JSON data containing datetime, timezone, and event name.

Send Email 📫

Sends an email to adam@magicloops.dev confirming the event that was created with the Nylas API.

Description

Books events via Nylas API on webhook

Instructions

Getting Setup

  1. Create a Nylas account and create a Sandbox application.
  2. Authenticate a test account with the sandbox application
  3. Copy the generated access token into the NYLAS_ACCESS_TOKEN Loop Value
  4. Select the "Calendar" tab and hit "Run" to get a sample of events from your calendar
  5. Extract the calendar_id field from your calendar and add it as the CALENDAR_ID Loop Value
  6. Add a default participant email as the PARTICIPANT Loop Value

Testing

Send a JSON blob to the Magic Loop Webhook trigger in the form of:

{
  "datetime": "2023-11-12T14:00:00", 
  "timezone": "America/New_York", 
  "event_name": "Consultation Call", 
  "email": "example@test.com"
}

Here's a CURL command for simplicity:

curl -X POST https://magicloops.dev/api/loop/run/{LOOP_ID} \
-H "Content-Type: application/json" \
-d '{
  "datetime": "2023-11-12T14:00:00", 
  "timezone": "America/New_York", 
  "event_name": "Consultation Call", 
  "email": "example@test.com"
}'
5.0 (0 ratings)
2 runs