projects→ai-sales-assistant-a-lead-qualifying-chatbot-for-an-advertising-agency

AI Sales Assistant / a Lead-Qualifying Chatbot for an Advertising Agency

From an AI chat to a booked call with a salesperson, and an Excel list nobody has to type.

A sales chatbot for an advertising agency: it qualifies visitors, books calls with an expert, and a second AI step turns every conversation into an Excel lead list.

Vintage red rotary telephone on a saffron background
Status: delivered Type: LLM pipeline Stack:
  • Excel
  • JavaScript
  • OpenAI API
  • OpenAI Assistants API
  • PHP

The brief

An advertising agency wanted a virtual sales assistant on its website: a chatbot that gets to know each visitor’s business, checks whether the agency’s services and budget are a fit, and books a call with one of its experts. Then the sales team needed every conversation turned into a clean lead list, without rereading transcripts.

I built it between November 2024 and January 2025, as a paid project.

How the conversation works

The assistant follows a sales playbook, written as its instructions:

From chat to lead list

The chatbot only talks. A second AI step does the paperwork:

Keeping the two steps apart means the chatbot never has to break the conversation to fill in a form, and the extraction can change without touching the assistant’s personality.

How it evolved

The assistant went through four versions:

  1. Prototype: a single page calling the OpenAI API, with the instructions and the service list in the prompt.
  2. Chat widget: a proper chat box on the agency’s homepage, saving every conversation, plus the first version of the parser.
  3. Assistants API: the move to OpenAI’s Assistants API, which keeps each conversation as a thread. It also added rate limiting, a daily lead list and the Excel export.
  4. Security pass: data folders closed to the web, the admin area behind a password, and requests to the chat checked at the source.

contact

Let's talk.

Need help with something? Looking for a professional who's reliable and believes in karma*?

Tell me about it here, or send me an email. I reply within two working days.

* which means value and integrity come first; reward follows.