# User info

***

You can send user information to Appflow\.ai backend in the following ways

```kotlin
Appflow.uploadUserInfo(UserAttribute attribute, UploadUserInfoListener listener)
```

&#x20;**Example**

```kotlin
val build = UserAttribute.Builder()
    .setName("user_name")
    .setPhone("user_phone")
    .setGender(UserGender.FEMALE)
    .setEmail("user_email")
    .setAge(18)
    .setCustomAttribute("address", "user_address")
    .setCustomAttribute("id", "user_id")
    .build()
Appflow.uploadUserInfo(build, object : UploadUserInfoListener {
    override fun onSuccess() {
    }
    override fun onFail(error: String?) {
    }
})
```

**API Reference**&#x20;

| UserAttribute                               |                           |
| ------------------------------------------- | ------------------------- |
| setName(name: String)                       | Set user name             |
| setEmail(email: String                      | Set user email            |
| setGender(gender: UserGender)               | Set user gender           |
| setPhone(phone: String)                     | Set user phone            |
| setAge(age: String)                         | Set user age              |
| setCustomAttribute(key: String, value: Any) | Set custom user attribute |

| UploadUserInfoListener |                  |
| ---------------------- | ---------------- |
| onSuccess()            | Success callback |
| onFail(error: String?) | Failure callback |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.appflow.ai/docs/sdk-set-up-instructions/android-sdk/user-info.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
