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

# People picker

> Let users choose friends with Zend's own picker. Your app only sees who they chose.

`zend.people.pick` opens Zend's friend picker. You get back only the people the user chose, never their friend list.

```ts theme={null}
const picked = await zend.people.pick({ title: "Who do you want to play?", max: 3 });
if (picked.length === 0) return; // the user backed out

const game = await zend.interaction.create({
  type: "challenge",
  participants: picked.map((p) => p.pick),
});
```

Each result is:

```ts theme={null}
{ appUserId: string; name: string; username: string | null; avatar: string | null; pick: string }
```

Pass `pick` as a participant to `interaction.create`. It works even for people who haven't opened your app yet, which an `@username` or `appUserId` might not.

| Param | Notes |
| - | - |
| `title` | Heading on the picker |
| `max` | Most people the user can choose |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.