Перейти к содержанию
НОВОЕМаркетплейс и ваша команда: продавайте то, что создали, и получайте планы и изменения, проверенные до того, как вы их увидите. Что нового

Библиотека / Календарь и планирование

Календарь и планирование

Book confirmed webhook appointments in Google Calendar using a POST endpoint

When an API call/webhook arrives, it manages calendar events using Google Calendar.

Что делает

## Book confirmed appointments in Google Calendar ### Purpose and audience For teams connecting a booking form, assistant or internal tool to Google Calendar. Accept a request that the caller has already confirmed, check the requested interval and create a private calendar event only when that interval is available. This workflow does not obtain the person's confirmation itself. ### How it works The webhook validates real RFC3339 timestamps, a future start, an interval of at most one day, a summary and a request ID. The request must include confirmed: true. Calendar availability must be an explicit boolean. After creation, the workflow checks the returned event ID, confirmed status and times before reporting success. ### Setup 1. Configure a Webhook Header Auth credential on Receive Request. Send that header from your caller and choose a unique webhook path. Never put secrets in this note or in the request body. 2. Select your Google Calendar OAuth credential on both Google Calendar nodes. Replace both YOUR_CALENDAR_ID placeholders with the same calendar ID. 3. Start with a dedicated test calendar. Keep the workflow inactive until your installation, credentials, caller and error paths have been tested. 4. Send start, end, summary, request_id and boolean confirmed. Timestamps need seconds and an explicit offset. The summary must be nonempty and at most 160 characters. The request ID must contain 16 to 64 lowercase letters a to v or digits. 5. Keep the same request ID for retries of the same intended booking. Use a different ID for a different booking. ### Responses and limits HTTP 201 means the matching event receipt was confirmed. HTTP 400 means invalid input. HTTP 409 means the interval is busy and this attempt did not create a new event. HTTP 502 means the calendar check failed or creation remains unconfirmed. Inspect the response status to distinguish those cases. Availability checking and event creation are separate operations. Serialize all calendar writers if overlapping reservations are unacceptable. This workflow provides no exactly-once guarantee. After an ambiguous response, reconcile the request ID in the calendar before retrying; a busy retry can reflect the earlier successful event. Events have no attendees, confirmation emails or reminders. Separate workflows are needed for customer notifications, rescheduling and cancellation. Isolated fixture

Шаги

  1. Receive Request
  2. Validate Request
  3. Request Is Valid
  4. Check Calendar
  5. Interval Is Available
  6. Create Appointment
  7. Confirm Created Event
  8. Return Booking
  9. Return Invalid
  10. Return Provider Error
  11. Return Busy
  12. Return Unconfirmed
  13. Validate Calendar Result

Похожие автоматизации