Module 90: AI Application Project

Lesson 3 of 5 · 15–25 minutes

Integration

🏠The everyday picture

A new hire becomes useful when they're part of the team's daily tools: on the office chat, with access to the right files, in the right meetings. Brilliant but disconnected helps nobody.

📘What it really is

React assistant page (inside the CRM, behind login)
  → POST /v1/assistant/ask  (auth, role, rate and size limits, kill-switch flag)
      → standalone question rewrite (for follow-ups)
      → hybrid retrieval with permission and status filters → rerank → top passages
      → grounded prompt (versioned template) + read-only tools (customer summary)
      → model API (streaming, typed errors, cost logging)
      → checks: citations valid, numbers supported, faithfulness for flagged topics
      → stream answer + sources to the page; save to the conversation log (masked)
  → draft_followup_email tool → pending action → approvals page → send on approval
n8n: re-index on document change, review-date reminders, daily quality report

🖱️Try it

Integrate your assistant fully into your CRM, following the diagram. Write the missing tests: permission tests for retrieval and tools, limits tests for the route, and unit tests for chunking and citation checks. Run your full eval suite and fix failures until safety and permission cases pass completely.

✅Quick check

Where in the flow are permissions enforced?

Show the answer

At the route (login and role), in retrieval filters, inside every tool, and again when approving actions.

Why show sources and a short accuracy note on every answer?

Show the answer

So users can check answers and don't over-trust them.

← PreviousKnowledge preparation
ProLearners Assist