# Pengo

> Work your Pengo chat inbox: read and answer conversations, keep contacts up to date and feed Pengo's AI the documents it answers from.

App · 21 actions. Web page: https://docs.lodol.com/docs/integrations/pengo

## Actions

### Add note

Add an internal note to a conversation that only your team sees.

**Inputs**

- Conversation ID (`id`, text, required): The conversation, from List conversations.
- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
- Note (`content`, text, required): The text, up to 10,000 characters.
- Author (`author_id`, text): The agent writing it. Leave empty for the key's creator.
- Pin it (`is_pinned`, true/false): Whether to pin the note.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "author_id": "9c8b7a6d-0000-4000-8000-000000000003",
      "content": "Customer prefers email.",
      "conversation_id": "3f6d1c2e-9a8b-4c7d-a6e5-0f1e2d3c4b5a",
      "created_at": "2026-10-19T09:30:12.101Z",
      "id": "1b2c3d4e-0000-4000-8000-00000000000a",
      "is_pinned": false,
      "updated_at": "2026-10-19T09:30:12.101Z"
    }
  }
}
```

### Add or update knowledge document

Send Pengo a document to answer from, or update the one with the same reference.

**Inputs**

- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
- Reference (`external_id`, text, required): Your own ID for the document, unique in its source.
- Title (`title`, text, required): Its title.
- Content (`content`, text, required): The text, as Markdown or HTML, up to 200,000 characters.
- Format (`format`, text): Markdown (the default) or HTML. One of: `markdown`, `html`.
- Address (`url`, text): Where the document lives.
- Link to it (`is_public`, true/false): Whether answers may link to its address. Only for anyone.
- Who it is for (`audience`, text): Who may be answered from it. Leave empty for anyone. One of: `public` (Anyone), `verified` (Verified customers), `internal` (Your team only).
- Channels (`channels`, list): The channels whose answers may use it. Leave empty for all. One or more of: `chat`, `email`, `whatsapp`, `sms`, `messenger`, `instagram`.
- Language (`language`, text): Its language code, such as en.
- Source (`source`, text): The API source to put it in. Leave empty for API.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created": true,
    "data": {
      "audience": "public",
      "channels": [
        "chat"
      ],
      "char_count": 42,
      "created_at": "2026-10-19T09:30:12.101Z",
      "enabled": true,
      "external_id": "kb-article-1042",
      "id": "4d5e6f70-0000-4000-8000-000000000007",
      "indexed_at": "2026-10-19T09:30:12.101Z",
      "is_public": true,
      "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
      "source_id": "6f708192-0000-4000-8000-000000000008",
      "status": "active",
      "title": "Shipping to Canada",
      "updated_at": "2026-10-19T09:30:12.101Z",
      "url": "https://example.com/help/shipping"
    },
    "result": "indexed"
  }
}
```

### Create or update contact

Add a contact, or update the one with the same email.

**Inputs**

- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
- Email (`email`, text, required): Their email. If a contact has it, that contact is updated.
- Name (`name`, text): Their name.
- Phone (`phone`, text): Their phone number.
- Company (`company`, text): Their company.
- Attributes (`attributes`, object): Values by key: text, numbers or yes/no. They merge into the saved ones.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created": true,
    "data": {
      "attributes": {},
      "company": "Analytical Engines",
      "country_code": "GB",
      "created_at": "2026-10-19T09:30:12.101Z",
      "email": "ada@example.com",
      "external_id": "user_42",
      "first_seen_at": "2026-10-19T09:30:12.101Z",
      "id": "5b6c7d8e-0000-4000-8000-000000000002",
      "is_online": false,
      "last_chat_at": "2026-10-19T09:30:12.101Z",
      "last_seen_at": "2026-10-19T09:30:12.101Z",
      "name": "Ada Lovelace",
      "phone": "+15555550123",
      "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
      "tags": [
        "vip"
      ],
      "total_chats": 3,
      "updated_at": "2026-10-19T09:30:12.101Z"
    }
  }
}
```

### Erase contact

Erase a person for a data request: their messages, files, leads and bookings are deleted. It can't be undone.

**Inputs**

- Contact ID (`id`, text, required): The contact, from List contacts.
- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "chats_anonymized": 1,
      "deleted": true,
      "files_deleted": 0,
      "id": "5b6c7d8e-0000-4000-8000-000000000002",
      "leads_deleted": 0,
      "messages_deleted": 4
    }
  }
}
```

### Get contact

Get one contact.

**Inputs**

- Contact ID (`id`, text, required): The contact, from List contacts.
- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "company": "Analytical Engines",
      "country_code": "GB",
      "created_at": "2026-10-19T09:30:12.101Z",
      "email": "ada@example.com",
      "external_id": "user_42",
      "first_seen_at": "2026-10-19T09:30:12.101Z",
      "id": "5b6c7d8e-0000-4000-8000-000000000002",
      "is_online": false,
      "last_chat_at": "2026-10-19T09:30:12.101Z",
      "last_seen_at": "2026-10-19T09:30:12.101Z",
      "name": "Ada Lovelace",
      "phone": "+15555550123",
      "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
      "tags": [
        "vip"
      ],
      "total_chats": 3,
      "updated_at": "2026-10-19T09:30:12.101Z"
    }
  }
}
```

### Get conversation

Get one conversation.

**Inputs**

- Conversation ID (`id`, text, required): The conversation, from List conversations.
- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assigned_to": "9c8b7a6d-0000-4000-8000-000000000003",
      "channel": "web",
      "created_at": "2026-10-19T09:30:12.101Z",
      "custom_fields": {},
      "first_response_at": "2026-10-19T09:30:12.101Z",
      "id": "3f6d1c2e-9a8b-4c7d-a6e5-0f1e2d3c4b5a",
      "last_message": "Do you ship to Canada?",
      "last_message_at": "2026-10-19T09:30:12.101Z",
      "priority": "normal",
      "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
      "rating": 5,
      "resolved_at": "2026-10-19T09:30:12.101Z",
      "status": "open",
      "tags": [
        "shipping"
      ],
      "team_id": "1a2b3c4d-0000-4000-8000-000000000004",
      "updated_at": "2026-10-19T09:30:12.101Z",
      "visitor_email": "ada@example.com",
      "visitor_id": "5b6c7d8e-0000-4000-8000-000000000002",
      "visitor_name": "Ada"
    }
  }
}
```

### Get visitor

Get one visitor with their attributes and company.

**Inputs**

- Visitor ID (`id`, text, required): The visitor, from List visitors.
- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "company": {
        "attributes": {},
        "domain": "example.com",
        "id": "2c3d4e5f-0000-4000-8000-000000000006",
        "name": "Analytical Engines"
      },
      "country_code": "GB",
      "created_at": "2026-10-19T09:30:12.101Z",
      "custom_attributes": {},
      "email": "ada@example.com",
      "has_active_chat": false,
      "id": "5b6c7d8e-0000-4000-8000-000000000002",
      "is_online": true,
      "last_seen_at": "2026-10-19T09:30:12.101Z",
      "name": "Ada Lovelace",
      "phone": "+15555550123",
      "tags": [
        "vip"
      ]
    }
  }
}
```

### List agents

List the people in your workspace, with their user IDs.

**Inputs**

- Website ID (`property_id`, text): Only people who can be assigned this website's conversations, by the propertyId in your install snippet.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "availability_status": "online",
        "avatar_url": "https://example.com/grace.png",
        "email": "grace@example.com",
        "id": "9c8b7a6d-0000-4000-8000-000000000003",
        "joined_at": "2026-10-19T09:30:12.101Z",
        "name": "Grace Hopper",
        "role": "agent",
        "website_scope": "all"
      }
    ]
  }
}
```

### List audit log

List one page of your workspace's audit log, newest first.

**Inputs**

- Website ID (`property_id`, text): Only this website's entries, by the propertyId in your install snippet.
- Action (`action_name`, text): Only this action, such as settings.updated.
- Done by (`actor_id`, text): Only entries by this person.
- From (`since`, date and time): Only entries from this time.
- Until (`until`, date and time): Only entries up to this time.
- Page size (`limit`, number): How many to return, from 1 to 100. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "action": "settings.updated",
        "actor_email": "grace@example.com",
        "actor_id": "9c8b7a6d-0000-4000-8000-000000000003",
        "created_at": "2026-10-19T09:30:12.101Z",
        "id": "2d3e4f50-0000-4000-8000-00000000000b",
        "ip_address": "203.0.113.7",
        "metadata": {},
        "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
        "target_id": "8a1b2c3d-0000-4000-8000-000000000001",
        "target_type": "property",
        "user_agent": "Mozilla/5.0"
      }
    ],
    "pagination": {
      "has_more": true,
      "limit": 50,
      "next_cursor": "eyJ0IjoiMjAyNi0xMC0xOVQwOTozMDoxMi4xMDFaIn0"
    }
  }
}
```

### List contacts

List one page of contacts, newest first.

**Inputs**

- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
- Email (`email`, text): Only the contact with this email.
- Include anonymous visitors (`include_anonymous`, true/false): Yes to also list visitors without an email.
- Page size (`limit`, number): How many to return, from 1 to 100. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {},
        "company": "Analytical Engines",
        "country_code": "GB",
        "created_at": "2026-10-19T09:30:12.101Z",
        "email": "ada@example.com",
        "external_id": "user_42",
        "first_seen_at": "2026-10-19T09:30:12.101Z",
        "id": "5b6c7d8e-0000-4000-8000-000000000002",
        "is_online": false,
        "last_chat_at": "2026-10-19T09:30:12.101Z",
        "last_seen_at": "2026-10-19T09:30:12.101Z",
        "name": "Ada Lovelace",
        "phone": "+15555550123",
        "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
        "tags": [
          "vip"
        ],
        "total_chats": 3,
        "updated_at": "2026-10-19T09:30:12.101Z"
      }
    ],
    "pagination": {
      "has_more": true,
      "limit": 50,
      "next_cursor": "eyJ0IjoiMjAyNi0xMC0xOVQwOTozMDoxMi4xMDFaIn0"
    }
  }
}
```

### List conversations

List one page of conversations, newest first.

**Inputs**

- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
- Status (`status`, text): Only conversations with this status. One of: `open`, `pending`, `snoozed`, `resolved`.
- Assigned to (`assigned_to`, text): Only conversations assigned to this agent.
- Team ID (`team`, text): Only conversations routed to this team.
- Page size (`limit`, number): How many to return, from 1 to 100. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "assigned_to": "9c8b7a6d-0000-4000-8000-000000000003",
        "channel": "web",
        "created_at": "2026-10-19T09:30:12.101Z",
        "custom_fields": {},
        "first_response_at": "2026-10-19T09:30:12.101Z",
        "id": "3f6d1c2e-9a8b-4c7d-a6e5-0f1e2d3c4b5a",
        "last_message": "Do you ship to Canada?",
        "last_message_at": "2026-10-19T09:30:12.101Z",
        "priority": "normal",
        "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
        "rating": 5,
        "resolved_at": "2026-10-19T09:30:12.101Z",
        "status": "open",
        "tags": [
          "shipping"
        ],
        "team_id": "1a2b3c4d-0000-4000-8000-000000000004",
        "updated_at": "2026-10-19T09:30:12.101Z",
        "visitor_email": "ada@example.com",
        "visitor_id": "5b6c7d8e-0000-4000-8000-000000000002",
        "visitor_name": "Ada"
      }
    ],
    "pagination": {
      "has_more": true,
      "limit": 50,
      "next_cursor": "eyJ0IjoiMjAyNi0xMC0xOVQwOTozMDoxMi4xMDFaIn0"
    }
  }
}
```

### List knowledge documents

List one page of the documents sent through the API, newest first.

**Inputs**

- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
- Source (`source`, text): Only documents in the source with this name.
- Reference (`external_id`, text): Only the document with this reference.
- Page size (`limit`, number): How many to return, from 1 to 100. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "audience": "public",
        "channels": [
          "chat"
        ],
        "char_count": 42,
        "created_at": "2026-10-19T09:30:12.101Z",
        "enabled": true,
        "external_id": "kb-article-1042",
        "id": "4d5e6f70-0000-4000-8000-000000000007",
        "indexed_at": "2026-10-19T09:30:12.101Z",
        "is_public": true,
        "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
        "source_id": "6f708192-0000-4000-8000-000000000008",
        "status": "active",
        "title": "Shipping to Canada",
        "updated_at": "2026-10-19T09:30:12.101Z",
        "url": "https://example.com/help/shipping"
      }
    ],
    "pagination": {
      "has_more": true,
      "limit": 50,
      "next_cursor": "eyJ0IjoiMjAyNi0xMC0xOVQwOTozMDoxMi4xMDFaIn0"
    }
  }
}
```

### List knowledge sources

List the website's knowledge sources filled through the API.

**Inputs**

- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "char_count": 42,
        "chunk_count": 1,
        "created_at": "2026-10-19T09:30:12.101Z",
        "document_count": 1,
        "enabled": true,
        "id": "6f708192-0000-4000-8000-000000000008",
        "last_pushed_at": "2026-10-19T09:30:12.101Z",
        "name": "API",
        "property_id": "8a1b2c3d-0000-4000-8000-000000000001"
      }
    ]
  }
}
```

### List messages

List one page of a conversation's messages, oldest first.

**Inputs**

- Conversation ID (`id`, text, required): The conversation, from List conversations.
- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
- Page size (`limit`, number): How many to return, from 1 to 100. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "chat_id": "3f6d1c2e-9a8b-4c7d-a6e5-0f1e2d3c4b5a",
        "client_message_id": "refund-4821",
        "content": "Thanks, your refund is on its way.",
        "created_at": "2026-10-19T09:30:12.101Z",
        "id": "7e8f9a0b-0000-4000-8000-000000000005",
        "sender_id": "9c8b7a6d-0000-4000-8000-000000000003",
        "sender_type": "agent"
      }
    ],
    "pagination": {
      "has_more": true,
      "limit": 50,
      "next_cursor": "eyJ0IjoiMjAyNi0xMC0xOVQwOTozMDoxMi4xMDFaIn0"
    }
  }
}
```

### List tags

List the website's conversation tags.

**Inputs**

- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "color": "#00a8e0",
        "created_at": "2026-10-19T09:30:12.101Z",
        "id": "0a1b2c3d-0000-4000-8000-000000000009",
        "name": "shipping",
        "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
        "usage_count": 12
      }
    ]
  }
}
```

### List visitors

List one page of visitors, most recently seen first.

**Inputs**

- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
- Online (`is_online`, true/false): Yes for only visitors on the site now, no for only those who are not.
- Chatting (`has_active_chat`, true/false): Yes for only visitors chatting now, no for only those who are not.
- Page size (`limit`, number): How many to return, from 1 to 100. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "company": "Analytical Engines",
        "company_id": "2c3d4e5f-0000-4000-8000-000000000006",
        "country_code": "GB",
        "created_at": "2026-10-19T09:30:12.101Z",
        "custom_attributes": {},
        "email": "ada@example.com",
        "has_active_chat": false,
        "id": "5b6c7d8e-0000-4000-8000-000000000002",
        "is_online": true,
        "last_seen_at": "2026-10-19T09:30:12.101Z",
        "name": "Ada Lovelace",
        "phone": "+15555550123",
        "tags": [
          "vip"
        ]
      }
    ],
    "pagination": {
      "has_more": true,
      "limit": 50,
      "next_cursor": "eyJ0IjoiMjAyNi0xMC0xOVQwOTozMDoxMi4xMDFaIn0"
    }
  }
}
```

### Remove knowledge document

Remove a document; Pengo stops answering from it at once.

**Inputs**

- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
- Document ID (`id`, text): The document's Pengo ID. Give this or its reference.
- Reference (`external_id`, text): Your own ID for the document.
- Source (`source`, text): The source the reference is in. Leave empty for API.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "audience": "public",
      "channels": [
        "chat"
      ],
      "char_count": 42,
      "created_at": "2026-10-19T09:30:12.101Z",
      "enabled": true,
      "external_id": "kb-article-1042",
      "id": "4d5e6f70-0000-4000-8000-000000000007",
      "indexed_at": "2026-10-19T09:30:12.101Z",
      "is_public": true,
      "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
      "source_id": "6f708192-0000-4000-8000-000000000008",
      "status": "active",
      "title": "Shipping to Canada",
      "updated_at": "2026-10-19T09:30:12.101Z",
      "url": "https://example.com/help/shipping"
    },
    "deleted": true
  }
}
```

### Send message

Send a message in a conversation, as an agent or as the bot.

**Inputs**

- Conversation ID (`id`, text, required): The conversation, from List conversations.
- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
- Message (`content`, text, required): The text, up to 10,000 characters.
- Send as (`sender_type`, text): An agent (the default) or the bot. One of: `agent`, `bot`.
- Agent (`sender_id`, text): The agent sending it. Needed when sending as an agent.
- Message reference (`client_message_id`, text): Your own ID for the message, so a retry doesn't send it twice.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "chat_id": "3f6d1c2e-9a8b-4c7d-a6e5-0f1e2d3c4b5a",
      "client_message_id": "refund-4821",
      "content": "Thanks, your refund is on its way.",
      "created_at": "2026-10-19T09:30:12.101Z",
      "id": "7e8f9a0b-0000-4000-8000-000000000005",
      "sender_id": "9c8b7a6d-0000-4000-8000-000000000003",
      "sender_type": "agent"
    }
  }
}
```

### Update contact

Change a contact's name, email, phone, company or attributes.

**Inputs**

- Contact ID (`id`, text, required): The contact, from List contacts.
- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
- Email (`email`, text): Their email.
- Name (`name`, text): Their name.
- Phone (`phone`, text): Their phone number.
- Company (`company`, text): Their company.
- Attributes (`attributes`, object): Values by key: text, numbers or yes/no. They merge into the saved ones.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "company": "Analytical Engines",
      "country_code": "GB",
      "created_at": "2026-10-19T09:30:12.101Z",
      "email": "ada@example.com",
      "external_id": "user_42",
      "first_seen_at": "2026-10-19T09:30:12.101Z",
      "id": "5b6c7d8e-0000-4000-8000-000000000002",
      "is_online": false,
      "last_chat_at": "2026-10-19T09:30:12.101Z",
      "last_seen_at": "2026-10-19T09:30:12.101Z",
      "name": "Ada Lovelace",
      "phone": "+15555550123",
      "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
      "tags": [
        "vip"
      ],
      "total_chats": 3,
      "updated_at": "2026-10-19T09:30:12.101Z"
    }
  }
}
```

### Update conversation

Change a conversation's status, assignee, priority, tags or fields.

**Inputs**

- Conversation ID (`id`, text, required): The conversation, from List conversations.
- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
- Status (`status`, text): The new status. One of: `open`, `pending`, `snoozed`, `resolved`.
- Assign to (`assigned_to`, text): The agent to assign it to.
- Priority (`priority`, text): The new priority. One of: `urgent`, `high`, `normal`, `low`.
- Tags (`tags`, list): The full list of tags, up to 20. It replaces the current ones.
- Conversation fields (`custom_fields`, object): Field values by key. Only the fields you name change.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assigned_to": "9c8b7a6d-0000-4000-8000-000000000003",
      "channel": "web",
      "created_at": "2026-10-19T09:30:12.101Z",
      "custom_fields": {},
      "first_response_at": "2026-10-19T09:30:12.101Z",
      "id": "3f6d1c2e-9a8b-4c7d-a6e5-0f1e2d3c4b5a",
      "last_message": "Do you ship to Canada?",
      "last_message_at": "2026-10-19T09:30:12.101Z",
      "priority": "normal",
      "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
      "rating": 5,
      "resolved_at": "2026-10-19T09:30:12.101Z",
      "status": "open",
      "tags": [
        "shipping"
      ],
      "team_id": "1a2b3c4d-0000-4000-8000-000000000004",
      "updated_at": "2026-10-19T09:30:12.101Z",
      "visitor_email": "ada@example.com",
      "visitor_id": "5b6c7d8e-0000-4000-8000-000000000002",
      "visitor_name": "Ada"
    }
  }
}
```

### Update visitor

Change a visitor's name, email, phone or attributes; the site's own code can't overwrite them.

**Inputs**

- Visitor ID (`id`, text, required): The visitor, from List visitors.
- Website ID (`property_id`, text): The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
- Name (`name`, text): Their name.
- Email (`email`, text): Their email.
- Phone (`phone`, text): Their phone number.
- Attributes (`attributes`, object): Values by key: text, numbers or yes/no. They merge into the saved ones.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "company": {
        "attributes": {},
        "domain": "example.com",
        "id": "2c3d4e5f-0000-4000-8000-000000000006",
        "name": "Analytical Engines"
      },
      "country_code": "GB",
      "created_at": "2026-10-19T09:30:12.101Z",
      "custom_attributes": {},
      "email": "ada@example.com",
      "has_active_chat": false,
      "id": "5b6c7d8e-0000-4000-8000-000000000002",
      "is_online": true,
      "last_seen_at": "2026-10-19T09:30:12.101Z",
      "name": "Ada Lovelace",
      "phone": "+15555550123",
      "tags": [
        "vip"
      ]
    }
  }
}
```
