Skip to content
All projects
Client details withheld

AI Sales Agent

NEAX's sales-advisor AI agent on the HiliosAI platform, live on the company website. I rebuilt its system prompt and its 95-document knowledge base, and cut the chat widget's connect time from about 3s to 0.2s.

Role
AI Engineer — system prompt, query routing, RAG config, knowledge base, website integration
Year
2026
Company
NEAX AI
Chat widget connect time
~3s → ~0.2s
Documents in the knowledge base
95
System prompt length
−25%
Real conversations per week
~7

Context

NEAX runs an AI agent on the HiliosAI platform to advise visitors on products and hand leads to the sales team. The agent is embedded in the chat on the company website.

Problem

  • The agent has to give correct product information, never invent it, and know when to hand over to a person.
  • The old system prompt was long, could leak internal rules, and handled greetings, thanks and multilingual questions poorly.
  • The embedded SDK/iframe widget took about 3 seconds just to connect.

Solution & architecture

  1. Visitor asks on the website
  2. /api/hilios proxy issues a session token
  3. GPT-4.1 mini routes it to 1 of 5 categories
  4. Retrieve top 6 chunks, rerank to the best 3
  5. System prompt shapes the answer
  6. Answer, or hand over to sales
  • Knowledge base & RAG: I curated 95 documents into the agent’s knowledge base and configured retrieval on HiliosAI: vector search returns the top 6 chunks above a similarity threshold of 0.3 (tuned to balance coverage against precision), then a reranker (bge-reranker-base) keeps the best 3 for the answer.
  • System prompt engineering: rewrote the prompt (v4.5.8): a greeting/thanks mode, internal rules kept out of answers, language detection, about 25% shorter.
  • Query routing: I split questions into 5 categories, each with its own description so GPT-4.1 mini can classify them: greeting, sales_contact (pricing, demo, buying intent) and out_of_scope (homework, coding, attempts to reveal the prompt) take the basic flow without retrieval; product_consulting and event (seminars, workshops, registration) go through the knowledge base.
  • Sales conversation (MEDDIC + SPIN): the agent asks before it sells. Each reply ends with one guiding question (SPIN: situation, problem, implication, need) and builds up a MEDDIC picture of the customer, so the pitch comes only once the need is clear.
  • Website integration: replaced the SDK/iframe with a server-side session-token proxy, cutting connect time from about 3s to about 0.2s, with 400 ms polling.

What went wrong first

The first version answered some questions wrongly and pushed for the sale straight away. When my manager tested it, the conversation felt pushy and off-putting. I rewrote the conversation flow around the MEDDIC and SPIN sales methods: the agent now asks one question at a time to understand the customer’s situation, and only then moves toward an offer.

My role

Rewrote the system prompt, designed the query routing and RAG configuration, built the knowledge base, built the website chat proxy and the chat test suite.

Results

  • Live on the NEAX website, about 7 real conversations a week.
  • Widget connects about 15× faster (~3s → ~0.2s); prompt about 25% shorter.
  • 14 automated chat tests. Answer quality is not scored automatically yet, because the HiliosAI platform does not expose that metric.
Before vs after
  • Chat widget connect time0.2 s15×
    3 s → 0.2 s
  • System prompt length75 %−25%
    100 % → 75 %

Tech stack

HiliosAI, GPT-4.1 mini, RAG, prompt engineering (MEDDIC, SPIN), server-side session-token proxy.

All projects
ESC