Skip to content

samuelIkoli/ai-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telex AI Chatbot Integration

Overview

The Telex AI Chatbot Integration brings intelligent, real-time responses to your Telex channels. It empowers your team with an AI-driven assistant that answers questions using a robust knowledge base of preloaded company documents and FAQsβ€”all directly within Telex.

Key Features

πŸš€ Instant AI-Powered Responses

  • Users can type questions into a Telex channel and receive immediate, relevant answers generated by an AI service.

πŸ”— Seamless Integration

  • Designed specifically for Telex, the integration ensures smooth communication without leaving your chat environment.

πŸ“š Dynamic Knowledge Base

  • Upload and manage documents through a dedicated endpoint. The system indexes these documents to provide accurate and context-rich answers.

πŸ’° Cost-Effective AI Options

  • Utilize free-tier AI services (e.g., Hugging Face, Cohere, or trial credits from OpenAI) to power your chatbot without heavy expenses.

How It Works

  1. User Interaction

    • A team member posts a question in a Telex channel.
  2. Payload Processing

    • The integration captures the query along with metadata (user and channel details).
  3. AI Query

    • The question, plus any additional context, is sent to an AI service that leverages your preloaded documents to generate a response.
  4. Response Delivery

    • The AI’s answer is relayed back to the Telex channel, alongside the original question.
  5. Document Updates

    • A separate endpoint lets you upload documents to keep the knowledge base current and comprehensive.

Tech Stack

  • Backend: Golang with Gin framework
  • AI Service: Gemini AI for document-based responses
  • Database: Gemini AI serving as both the LLM and storage solution
  • Deployment: Designed to run on cloud platforms with easy API integration

Installation & Setup

  1. Clone the repository:
    git clone https://github.com/telexintegrations/customer-service-ai-chatbot.git
    cd customer-service-ai-chatbot
  2. Install dependencies:
    go mod tidy
  3. Set up environment variables:
    export GEMINI_API_KEY="your_api_key"
    export TELEX_WEBHOOK="your_telex_webhook"
    export FILE_PATH="your_document_path"
  4. Run the application:
    go run main.go

API Endpoints

Upload Document

GET /integration

Ask a Question

POST /target

Request:

{
  "message": "What are the company policies on remote work?",
  "settings": [
    {
      "label": "Api Key",
      "type": "text",
      "required": true,
      "default": ""
    }
  ]
}

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature-name)
  3. Commit your changes (git commit -m "Added new feature")
  4. Push to the branch (git push origin feature-name)
  5. Create a Pull Request

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •