> [!NOTE]
> **Note:** For integration utilizing the legacy version of the Action feed, review the legacy [feed reference](https://developers.google.com/actions-center/verticals/appointments/redirect/reference/feeds/legacy/action-feed). If you are unsure which version of the feed has been enabled for your integration, reach out to your Google contact.

## Create and upload action feeds

When creating and uploading action feeds, follow these instructions:

- Follow the spec described in the [action feed](https://developers.google.com/actions-center/verticals/appointments/redirect/reference/feeds/action-feed#ActionFeed-definition) for action data files. We recommend using unique action data file names for each upload. Include a timestamp in the filename, for example, `action_1633621547.json`.
- In the fileset descriptor, set the `name` field to `reservewithgoogle.action.v2`. For an example of the descriptor file, refer to the [JSON sample](https://developers.google.com/actions-center/verticals/appointments/redirect/reference/feeds/action-feed#descriptor-file). We recommend using unique descriptor file names for each upload. Include a timestamp in the filename, for example, `action_1633621547.filesetdesc.json`. The descriptor file must be uploaded to the generic SFTP server.
- Upload feeds to the generic SFTP server daily as full refreshes.
- You can find SFTP server details in the [Configuration \> Feeds](https://partnerdash.google.com/apps/reservewithgoogle/configuration/feeds) section of the Partner Portal.

![Selecting feed servers](https://developers.google.com/static/actions-center/images/menus-integration-generic-feeds.png)
Selecting feed servers in the Partner Portal
- View feed ingestion status in the [Ingestion \> History](https://partnerdash.google.com/apps/reservewithgoogle/dashboards/feeds) section of the Partner Portal.

## Definitions

> [!NOTE]
> **Note:** The Action feed spec is defined in protobuffer format below, however we recommend uploading the feeds in JSON format. You can reference our [JSON sample feeds](https://developers.google.com/actions-center/verticals/appointments/redirect/reference/feeds/action-feed#samples) for more information.

### ActionFeed Definition

```protobuf
message ActionFeed {
  option features.(pb.java).nest_in_file_class = YES;

  repeated ActionDetail data = 1;
}
```

### ActionDetail Definition

```protobuf
message ActionDetail {
  option features.(pb.java).nest_in_file_class = YES;

  string entity_id = 2;
  string link_id = 3;

  // Deep link for action detail
  string url = 4;

  // The actions that can be performed using this deep link. At least one
  // Action must be specified.
  repeated Action actions = 1;
}
```

### Action Definition

```protobuf
// Information about an Action which could be performed.
message Action {
  option features.(pb.java).nest_in_file_class = YES;

  // Deprecated fields not to be reused.
  reserved 1;

  oneof action_info {
    AppointmentInfo appointment_info = 2;

  }
}
```

### AppointmentInfo Definition

```protobuf
// Indicates that the parent Action is for booking an appointment.
// In v2 of the Action feed, the deep link URL is specified on ActionDetail.url,
// so this message has no fields and should be set as an empty object
// (for example, "appointment_info": {} in JSON).
message AppointmentInfo {
  option features.(pb.java).nest_in_file_class = YES;

}
```

## Action Feed samples

### Action Feed

```json
{
  "data": [
    {
      "entity_id": "appointments-merchant-1",
      "link_id": "appointment-link-1",
      "url": "https://www.partnerwebsite.com/appointment/appointment-partner-1",
      "actions":[
        {
          "appointment_info": {}
        }
      ]
    }
  ]
}
```

### Descriptor File

```json
{
  "generation_timestamp": 1677540395,
  "name": "reservewithgoogle.action.v2",
  "data_file": [
    "action_1677540395_0001.json",
    "action_1677540395_0002.json"

  ]
}
```