# Appcues

> Publish and unpublish Appcues flows, manage segments and their users, update user and group profiles, track events, export event data, and follow new flows, segments and finished jobs.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/appcues

## Actions

### Add users to group

Make users members of a group, such as their company.

**Inputs**

- Group ID (`group_id`, text, required): The group's ID in your product, such as a company or team ID.
- User IDs (`user_ids`, list, required): User IDs from your product.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "status": 1,
    "title": "example"
  }
}
```

### Add users to segment

Add users to a segment by their user IDs. Appcues applies it within a few minutes; the job ID shows its progress.

**Inputs**

- Segment (`segment_id`, text, required): The segment.
- User IDs (`user_ids`, list, required): User IDs from your product.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "job_id": "example",
    "job_url": "example",
    "status": 1,
    "title": "example"
  }
}
```

### Create segment

Create a user segment. Add users to it with Add users to segment.

**Inputs**

- Name (`name`, text, required): The segment's name.
- Description (`description`, text): What the segment is for.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "created_by": "example",
    "description": "example",
    "id": "example",
    "name": "example",
    "updated_at": "example",
    "updated_by": "example",
    "url": "example"
  }
}
```

### Delete segment

Delete a segment for good.

**Inputs**

- Segment (`segment_id`, text, required): The segment.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "status": 1,
    "title": "example"
  }
}
```

### Delete user profile

Delete a user's profile and properties, which also resets the flows and checklists they have seen. Their past activity stays in reports.

**Inputs**

- User ID (`end_user_id`, text, required): The user's ID in your product, the one your app gives Appcues when it identifies them.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "job_id": "example",
    "job_url": "example",
    "status": 1,
    "title": "example"
  }
}
```

### Export events

Start an export of events over a time range, for a flow, a segment, a user or by event name. Get job returns the file's link when it's ready.

**Inputs**

- From (`start_time`, date and time, required): The start of the time range. Appcues suggests less than a month at a time.
- To (`end_time`, date and time): The end of the time range. Leave empty for now.
- Format (`format`, text): The file format. Leave empty for JSON. One of: `json`, `csv`.
- Flow (`flow_id`, text): Only events from this flow.
- Segment (`segment_id`, text): Only events from users in this segment.
- User ID (`end_user_id`, text): Only this user's events.
- Event names (`event_names`, list): Only events with these names, such as appcues:flow_completed.
- Skip page views (`skip_page_views`, true/false): Leave out page views and profile updates, usually the bulk of the events.
- Email the link to (`email`, list): Email addresses to send the export's link to.
- Events to export (`limit`, number): The most events to export, up to 10 million. From 1 to 10000000.
- Events to skip (`offset`, number): How many events to skip, with Events to export, for reading in pages. At least 0.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "job_id": "example",
    "job_url": "example",
    "status": 1,
    "title": "example"
  }
}
```

### Export segment members

Start an export of a segment's users. Get job returns the file's link when it's ready, and Appcues can email it too.

**Inputs**

- Segment (`segment_id`, text, required): The segment.
- Properties (`property_names`, list): User properties to include besides the user ID, such as email.
- Format (`format`, text): The file format. Leave empty for JSON. One of: `json`, `csv`.
- Email the link to (`email`, text): An email address to send the export's link to.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "job_id": "example",
    "job_url": "example",
    "status": 1,
    "title": "example"
  }
}
```

### Get flow

Get a flow's name, publish state, show frequency and tags.

**Inputs**

- Flow (`flow_id`, text, required): The flow.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "created_by": "example",
    "frequency": "example",
    "id": "example",
    "name": "example",
    "published": true,
    "published_at": "example",
    "tag_ids": [
      "example"
    ],
    "updated_at": "example",
    "updated_by": "example",
    "url": "example"
  }
}
```

### Get group profile

Get every property Appcues holds for a group, such as a company.

**Inputs**

- Group ID (`group_id`, text, required): The group's ID in your product, such as a company or team ID.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {}
}
```

### Get job

Get an offline job's status and progress, and an export's file link once it's done.

**Inputs**

- Job ID (`job_id`, text, required): The job's ID, which the step that started it returns.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "events": [
      {
        "attributes": {},
        "name": "example",
        "timestamp": "example"
      }
    ],
    "id": "example",
    "name": "example",
    "started_at": "example",
    "status": "example",
    "url": "example"
  }
}
```

### Get segment

Get a segment's name and description.

**Inputs**

- Segment (`segment_id`, text, required): The segment.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "created_by": "example",
    "description": "example",
    "id": "example",
    "name": "example",
    "updated_at": "example",
    "updated_by": "example",
    "url": "example"
  }
}
```

### Get tag

Get a tag's name.

**Inputs**

- Tag (`tag_id`, text, required): The tag.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "created_by": "example",
    "id": "example",
    "name": "example",
    "updated_at": "example",
    "updated_by": "example",
    "url": "example"
  }
}
```

### Get user events

List a user's most recent events, newest first.

**Inputs**

- User ID (`end_user_id`, text, required): The user's ID in your product, the one your app gives Appcues when it identifies them.
- Events to return (`limit`, number): How many events to return. Leave empty for 100. At least 1.

**Outputs**

- `data` (list): The response from Appcues.

**Example output**

```json
{
  "data": [
    {
      "attributes": {},
      "name": "example",
      "timestamp": "example",
      "user_id": "example"
    }
  ]
}
```

### Get user profile

Get every property Appcues holds for a user.

**Inputs**

- User ID (`end_user_id`, text, required): The user's ID in your product, the one your app gives Appcues when it identifies them.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {}
}
```

### List flows

List the account's flows with whether each is published and when it last changed.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Appcues.

**Example output**

```json
{
  "data": [
    {
      "created_at": "example",
      "created_by": "example",
      "frequency": "example",
      "id": "example",
      "name": "example",
      "published": true,
      "published_at": "example",
      "tag_ids": [
        "example"
      ],
      "updated_at": "example",
      "updated_by": "example",
      "url": "example"
    }
  ]
}
```

### List jobs

List recent offline jobs, such as exports and segment changes, with their status.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Appcues.

**Example output**

```json
{
  "data": [
    {
      "id": "example",
      "name": "example",
      "started_at": "example",
      "status": "example",
      "url": "example"
    }
  ]
}
```

### List segments

List the account's user segments.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Appcues.

**Example output**

```json
{
  "data": [
    {
      "created_at": "example",
      "created_by": "example",
      "description": "example",
      "id": "example",
      "name": "example",
      "updated_at": "example",
      "updated_by": "example",
      "url": "example"
    }
  ]
}
```

### List tags

List the tags used to organize flows and other experiences.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Appcues.

**Example output**

```json
{
  "data": [
    {
      "created_at": "example",
      "created_by": "example",
      "id": "example",
      "name": "example",
      "updated_at": "example",
      "updated_by": "example",
      "url": "example"
    }
  ]
}
```

### Publish flow

Publish a flow so it shows to the users it targets. Publishing a published flow changes nothing.

**Inputs**

- Flow (`flow_id`, text, required): The flow.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "status": 1,
    "title": "example"
  }
}
```

### Remove users from segment

Take users added with Add users to segment out of it again.

**Inputs**

- Segment (`segment_id`, text, required): The segment.
- User IDs (`user_ids`, list, required): User IDs from your product.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "job_id": "example",
    "job_url": "example",
    "status": 1,
    "title": "example"
  }
}
```

### Track event

Record an event for a user, such as Verified email. It can be used for targeting at once.

**Inputs**

- User ID (`end_user_id`, text, required): The user's ID in your product, the one your app gives Appcues when it identifies them.
- Event name (`name`, text, required): The event's name.
- Time (`timestamp`, date and time): When it happened. Leave empty for now.
- Attributes (`attributes`, object): Details about the event, by name.
- Group ID (`group_id`, text): The group (such as a company) the event belongs to.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "status": 1,
    "title": "example"
  }
}
```

### Unpublish flow

Unpublish a flow so it stops showing. Unpublishing an unpublished flow changes nothing.

**Inputs**

- Flow (`flow_id`, text, required): The flow.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "status": 1,
    "title": "example"
  }
}
```

### Update group profile

Set properties on a group's profile, such as its plan. They can be used for targeting at once.

**Inputs**

- Group ID (`group_id`, text, required): The group's ID in your product, such as a company or team ID.
- Properties (`properties`, object, required): The properties to set, by name, such as group_name and plan.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "status": 1,
    "title": "example"
  }
}
```

### Update segment

Rename a segment or change its description.

**Inputs**

- Segment (`segment_id`, text, required): The segment.
- Name (`name`, text): The segment's new name.
- Description (`description`, text): The segment's new description.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "created_by": "example",
    "description": "example",
    "id": "example",
    "name": "example",
    "updated_at": "example",
    "updated_by": "example",
    "url": "example"
  }
}
```

### Update user profile

Set properties on a user's profile, such as plan or role. They can be used for targeting at once.

**Inputs**

- User ID (`end_user_id`, text, required): The user's ID in your product, the one your app gives Appcues when it identifies them.
- Properties (`properties`, object, required): The properties to set, by name, such as plan and role.

**Outputs**

- `data` (object): The response from Appcues.

**Example output**

```json
{
  "data": {
    "status": 1,
    "title": "example"
  }
}
```
