Skip to content

Chapter 1: Objective and Preparation

Welcome to this advanced use case!

The Objective

We will build an E-commerce customer service system that classifies user inquiries into three levels and directs them to a specialized agent for resolution. This system will be able to:

  • Level 1: Answer general questions about the company using a knowledge base (RAG).
  • Level 2: Check the status of an order through an external API.
  • Level 3: Escalate complex problems to a human team via Telegram.

Step 1: Prepare the Credentials

Before building, we need to grant NappAI permission to access external services. Go to the Credentials section of the main NappAI panel and create the following:

  • Google API Credential:
    • Type: Google API.
    • Name: Mi Credencial de Gemini. (My Gemini Credential)
    • Google API Key: Paste your Google Generative AI key.
  • Google Drive Credential:
    • Type: Google Internal App (or the corresponding type for Drive).
    • Name: Mi Credencial de Drive. (My Drive Credential)
    • Permissions: Make sure to grant Read permissions.
  • API Request Credential (if necessary):
    • If the Level 2 Agent requires authentication for your e-commerce API, create a Generic or API Key type credential here.
  • Telegram Credential:
    • Type: Telegram Bot API.
    • Name: Mi Credencial de Telegram Bot. (My Telegram Bot Credential)
    • Bot Token: Paste your Telegram bot token.

With the authorizations ready, in the next chapter we will build the knowledge base for our system.