VimelHelp Center
/
PortuguêsVimel website

Lead capture from a Google spreadsheet

Captação de Leads (lead capture) links a Google spreadsheet to a funnel: each new row in the spreadsheet becomes a contact and a case, and the contact can receive an opening message. It suits the website form, the list of people signed up for an event, the leads from an ad: anything that already lands in a spreadsheet.

It is different from Importing contacts, which brings in a list in one go and only creates or updates contacts. Lead capture keeps reading the spreadsheet, and each new row opens a case.

Where it is

Under Config. CRM › Captação de Leads, in the Importação Google Sheets (Google Sheets import) section, which only account administrators open.

Connecting the Google account

Conectar nova conta Google (connect a new Google account) takes you to Google to authorise. Vimel asks for access only to the files you choose in Google's picker, not the whole Drive, and only reads the spreadsheet: nothing is written to it. You can connect more than one account.

Desconectar (disconnect) removes the account and removes its imports. The cases and contacts already created stay.

Creating an import

Nova importação (new import) asks for:

  • Conta Google (Google account): the account with access to the spreadsheet.
  • Nome da importação (import name), such as "Leads do site".
  • Instância WhatsApp (WhatsApp instance): the number the message goes out from.
  • Pipeline (board): the funnel where the cases open.
  • Planilha (spreadsheet): Selecionar planilha (select spreadsheet) opens the Google Drive picker.
  • Aba (tab): the spreadsheet's tab.
  • Linha do cabeçalho (header row) and 1ª linha de dados (first data row): where the column titles are and the first row to import. Rows above it do not come in, so an old spreadsheet can start from today.
  • Atraso (min) (delay, minutes): how many minutes to wait before the message.
  • Ativa or Inativa (active or inactive): whether the import is reading the spreadsheet.

Mapping the columns

Under Mapeamento de colunas (column mapping), each spreadsheet column gets a destination, and the screen already suggests one from the title: "Telefone" or "WhatsApp" goes to the phone, "Nome" to the name, and so on. The destinations are:

  • Telefone (WhatsApp) (phone): required, in one column only.
  • Nome (name) and Observações (notas do caso) (case notes).
  • The contact's details: email, Instagram, tags (separated by comma, semicolon or vertical bar) and address.
  • The account's contact fields and the case fields of the chosen funnel.
  • Ignorar (ignore).

The phone follows the same rule as Importing contacts: the area code is required and the 55 is optional. A number from outside Brazil starts with + and the country code. In Google Sheets, format the phone column as text, or the + disappears.

The opening message

The message is optional and depends on the number:

  • QR Code number: free text, in Mensagem agendada (opcional) (scheduled message, optional). The buttons below insert what comes from the spreadsheet (each column, the name, the first name, the phone), the case fields and the date and time of sending. Prévia (preview) shows the message with one spreadsheet row, and Ver outra linha (see another row) changes the row.
  • Official API number: the message is a Meta-approved template, with the spreadsheet's data in the variables. If the template is left incomplete, the import creates the cases with no message.

The message goes out at the funnel's next business hours, after the chosen delay. A row that arrives in the middle of the night gets the message when the next day opens.

What happens to each row

Vimel reads the spreadsheet every 5 minutes and takes the new rows, below the last one it has read, up to 200 at a time. For each row:

  • the contact is created or updated by phone, and the tags are added to the ones it already had;
  • the case opens in the funnel's first stage, with the contact's owner, if that person works in that funnel, or with the funnel's automatic distribution;
  • the opening message is scheduled.

Some rows do not open a case:

  • Duplicate: the contact already has an open case in that funnel. Nothing changes.
  • Invalid: no phone, or a phone outside the standard.
  • Contact flagged not to open cases: the contact's details come in, but with no case and no message. To turn it into a case, switch on Abrir novos casos (open new cases) on the contact, in Contatos (contacts), and copy the row to the end of the spreadsheet.

Taking care with the spreadsheet

Vimel remembers up to which row it has read, not the content. So:

  • always add rows at the end. A row inserted in the middle pushes the ones below it down, and they are read again;
  • do not delete rows already read. The ones below move up, and new rows that take their place are left out;
  • do not insert or move columns. The mapping is by column letter, and the data would start landing in the wrong field. To change it, edit the mapping;
  • a row corrected after it was read is not read again. Copy the corrected row to the end of the spreadsheet.

Following up on imports

Importações configuradas (configured imports) lists each import with the spreadsheet, the tab, the number, the funnel, the Última sync (last sync) and the Status. For each one:

  • Executar agora (run now) reads the spreadsheet straight away and shows the summary: imported, duplicates, invalid, failures and scheduled messages.
  • Linhas recusadas (rejected rows) shows the rows that did not come in, with the row, the phone, the reason and when, such as "Telefone sem DDD; informe o DDD" (phone with no area code). Duplicates do not show here.
  • Editar (edit) opens the same form. Inativa stops the reading, and messages already scheduled still go out.
  • Excluir (delete) removes the import. The cases and the messages already scheduled stay.

A funnel that receives an active import cannot be removed from its flow: deactivate the import first.

When the account shows an error

If Vimel cannot read the spreadsheet, the Google account gets the ERROR status, with the reason in red, such as "Sem permissão para ler a planilha. Reconecte a conta Google." (no permission to read the spreadsheet, reconnect the Google account) or "Planilha não encontrada — confira o ID e a aba." (spreadsheet not found). Meanwhile, no import on that account reads its spreadsheet.

To get it back, use Conectar nova conta Google with the same account: the imports carry on as they were and start reading again from where they stopped. Do not use Desconectar, which removes the imports.

Limits worth knowing

  • Up to 200 rows per read, every 5 minutes. A spreadsheet with a thousand new rows takes about 20 minutes to come in completely.
  • Columns up to ZZ.
  • Linhas recusadas shows up to 500 rows.
  • The import does not choose the case's stage, owner or tags: those come from the funnel, the contact and the mapped columns.