> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Respond to invitation

> Accept, decline, or tentatively accept a Google Calendar invitation.

`respondToInvitation` updates the connected account's own attendee entry while
leaving all other attendees intact.

## Example

```ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { respondToInvitation } from "automate.ax/google-calendar"

export default automation("Accept a calendar invitation", () => {
  onHttpRequest({ scope: "automation" })

  respondToInvitation({
    event: "event-id",
    response: "accepted",
    comment: "Looking forward to it",
    sendUpdates: "all",
  })
})
```

## Inputs

| Property      | Type                                      | Required | Default         | Description                            |
| ------------- | ----------------------------------------- | -------- | --------------- | -------------------------------------- |
| `event`       | `string`                                  | Yes      | —               | Invitation event ID or URL.            |
| `response`    | `"accepted" \| "declined" \| "tentative"` | Yes      | —               | New RSVP status.                       |
| `calendar`    | `string`                                  | No       | `"primary"`     | Calendar containing the attendee copy. |
| `comment`     | `string`                                  | No       | —               | Optional response comment.             |
| `sendUpdates` | `"all" \| "externalOnly" \| "none"`       | No       | Google default  | Notification behavior.                 |
| `account`     | Google account reference                  | No       | Project default | Account whose RSVP changes.            |

## Output

Returns the updated `CalendarEvent`; see [Get event](/reference/integrations/google-calendar/actions/get-event#output). The action first finds the attendee marked `self`; it fails when the authenticated user is not an attendee.
