# Upload and manage contacts in QwryAI > Import contacts from a file, add one person at a time, and tag contacts in bulk Importing lets you bring in up to 5,000 contacts at once from a `.csv` or `.xlsx` file, through a guided flow on the **Contacts** page. This page also covers adding a single contact and tagging contacts in bulk. See [Contacts overview](/docs/user-guides/chatbot/contacts/contacts-overview) for how contacts work. You can use this to: * Bring in customers from your store, CRM or newsletter tool * Tag everyone in a list, for example everyone who visited your stand at a fair * Fill in contact attributes in bulk > [!NOTE] > > New contacts go to the agent chosen in the agent filter, or to the agent you're working in when the filter shows **All chatbots**. ## Import contacts Select **Import** on the **Contacts** page and choose your file. The import has three steps: choose the file, map its columns, and review the contacts. ![The Contacts page header with the pointer on the Import button, beside Refresh and Add contact.](annotated/01-import-button.webp "Import opens a CSV or Excel file of contacts.") ### Choose a file Pick a `.csv` or `.xlsx` file from your computer. > [!NOTE] > > **Limits** > > * Up to **5,000 contacts** per import > * Up to **50 tags** per contact, each up to **40 characters** #### File format * **CSV**: columns separated by commas. Fields in quotes are allowed. * **Excel (.xlsx)**: the first sheet is read. * **Headers**: the first row holds the column names, and each row after it is one contact. For example: ```csv Name,Email,Phone,Customer ID Maya Collins,maya.collins@example.com,+1 415 555 0142,CUST-1042 Daniel Okafor,daniel.okafor@example.com,+44 20 7946 0811,CUST-1043 ``` ### Map columns **Import contacts** shows every column in your file with an **Example** value from it. Under **Import as**, choose what each column becomes. QwryAI suggests a match from each column's header. You can map a column to: * **Name** * **Email** * **Phone** * **External ID**: your own ID for the customer, such as a customer number * **Tags**: tags separated by commas * any of your agent's **Contact attributes** * **Don't import**, to leave the column out Below the columns: * **Tag every contact** adds the same tags to everyone in the file, for example `Winter fair`. * **Country of phone numbers** sets the country for numbers written without a `+` country code. It starts as your own country. Select **Review** to check the file. Nothing is imported yet. > [!WARNING] > > At least one column must be mapped to **Name**, **Email**, **Phone** or **External ID**: *Map a column to name, email, phone or external ID.* > [!TIP] > > Write phone numbers with their country code, like `+1 415 555 0142`. Numbers are saved in international form, which also helps QwryAI match people who message you on WhatsApp to their contact. ### Review contacts **Review contacts** shows what importing would do with each row, with these counts at the top: | Count | Meaning | | - | - | | **To import** | New contacts that will be added | | **Already in Contacts** | Rows that match a contact you already have. They're skipped. | | **Repeated in the file** | Rows that repeat an earlier row in the same file. They're skipped. | | **With problems** | Rows that couldn't be read, with the reason shown | Each row shows its **Row** number, the **Contact**, and the **Result**: **Ready**, **Already in Contacts**, **Repeats an earlier row**, or the problem with that row. Untick anyone you don't want to import, use **Previous** and **Next** to page through long files, or select **Back** to change the mapping. ### Completing the Import Select **Import N contacts** (for example **Import 5 contacts**) to add the ticked contacts. When it's done, QwryAI confirms how many were imported and how many were skipped, for example *Imported 5 contacts.* If some phone numbers couldn't be read, they're kept as written, and the message says how many. Attribute values that don't fit their attribute are left out and counted too. > [!TIP] > > Importing the same file again only adds the contacts that aren't in yet, so you can safely re-run an import after fixing a few rows. ## Import errors | Message | When it appears | What to do | | - | - | - | | "This file could not be read. Use a CSV or Excel (.xlsx) file." | Choosing the file | Save the file as `.csv` or `.xlsx` and try again. | | "No contacts found. Use a file with a header row and one contact per row." | Choosing the file | Put the column names in the first row and add at least one contact below. | | "Map a column to name, email, phone or external ID." | Mapping | Map at least one of those columns. | | "Import up to 5,000 contacts at a time." | Mapping | Split the file into files of 5,000 contacts or fewer. | | "Tags are up to 40 characters, separated by commas." | Mapping | Shorten the tags in **Tag every contact**. | | "Choose an agent in the filter first." | Importing | Pick an agent in the agent filter, then import again. | ## Add a single contact You can also add contacts one at a time. **1. Select Add contact** On the **Contacts** page, select **Add contact**. ![The Add contact dialog with the Name, Email, Phone and External ID fields.](annotated/02-add-contact--open.webp "Add contact: fill in what you know.") **2. Fill in what you know** The form has **Name**, **Email**, **Phone** and **External ID** (the ID in your own system). A name, email, phone or external ID is enough. Select **Add contact** to save, and QwryAI confirms with *Contact added.* ![The Add contact dialog filled in with the name Priya Shah, the email priya.shah@example.com and the External ID CUST-1047.](annotated/03-add-contact-filled.webp "A name, an email and your own customer ID.") ## Tag contacts in bulk Tags group contacts for filters, segments and campaigns. **1. Select the contacts** Tick contacts in the table. The selection bar shows how many you've selected. **2. Add or remove tags** Select **Add tags** or **Remove tags**, type the tags separated by commas (for example `VIP, Winter sale`), and confirm. **Clear** drops the selection. ![The Add tags box open from the selection bar, with a Tags field for comma-separated tags.](annotated/04-add-tags--open.webp "Tag the selected contacts.") > [!NOTE] > > You can change up to 1,000 contacts at a time, and each contact can have up to 50 tags of up to 40 characters. Choose an agent in the agent filter first. ## Frequently asked questions > [accordion] How many contacts can I import at once? > > Up to 5,000 per file. For more, split your list into several files. There's no limit on the total number of contacts. > [accordion] What happens to people who are already in Contacts? > > They're marked **Already in Contacts** during review and skipped, so importing never creates a duplicate. > [accordion] Do phone numbers need a country code? > > No. Numbers without a `+` country code are read in the country chosen under **Country of phone numbers**. Including the country code is still the safest choice. > [accordion] Can I tag everyone in a file? > > Yes. Type the tags in **Tag every contact** before you select **Review**. You can also map a column of your file to **Tags**. > [accordion] Can I import contact attributes? > > Yes. Your agent's contact attributes appear under **Contact attributes** in the **Import as** menu. Values that don't fit an attribute's type are left out and counted in the result. ## Next steps > [card] Contacts overview | /docs/user-guides/chatbot/contacts/contacts-overview | How contacts are created, filtered and used by Actions and Procedures. > [card] Outbound campaigns | /docs/user-guides/chatbot/outbound-campaigns | Reach a tagged group or saved segment with an email or WhatsApp campaign.