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
- Create a Nylas account and create a Sandbox application.
- Authenticate a test account with the sandbox application
- Copy the generated access token into the
NYLAS_ACCESS_TOKENLoop Value - Select the "Calendar" tab and hit "Run" to get a sample of events from your calendar
- Extract the
calendar_idfield from your calendar and add it as theCALENDAR_IDLoop Value - Add a default participant email as the
PARTICIPANTLoop 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