Skip to content

AskFlow is an intelligent chatbot application that leverages advanced AI decision-making to provide accurate responses by either answering directly from its knowledge or performing real-time internet searches using Tavily Search API.

Notifications You must be signed in to change notification settings

Jospin6/askflow

Repository files navigation

AskFlow - Intelligent Internet-Connected Chatbot

Python 3.10+ LangChain LangGraph FastAPI Streamlit Tavily Search License: MIT Render Streamlit Cloud

AskFlow is an intelligent chatbot application that leverages advanced AI decision-making to provide accurate responses by either answering directly from its knowledge or performing real-time internet searches using Tavily Search API.

screenshot

Features

  • Intelligent Decision Making: LangGraph-powered agent that decides whether to answer directly or search the web
  • Real-time Internet Access: Integrated Tavily Search API for up-to-date information
  • Conversational Memory: Maintains context throughout conversations
  • RESTful API: FastAPI backend with comprehensive endpoints
  • Modern Web Interface: Streamlit-based responsive UI
  • Cloud Deployment: Fully deployed and accessible online

Live Demos

Tech Stack

  • AI Framework: LangChain, LangGraph
  • Search API: Tavily Search
  • Backend: FastAPI, Uvicorn, Pydantic
  • Frontend: Streamlit
  • LLM Integration: OpenAI GPT (or your preferred LLM)
  • Deployment: Render, Streamlit Cloud
  • Environment Management: Poetry/Pipenv

How It Works

Decision Process Flow

  1. User Input: User submits a question through the interface
  2. Agent Decision: LangGraph agent analyzes whether to answer directly or search the web
  3. Execution: Direct answer or web search via Tavily API
  4. Response Delivery: Formatted response returned to user

Getting Started

Prerequisites

  • Python 3.10 or higher
  • Tavily Search API key
  • OpenAI API key (or alternative LLM provider)
  • Poetry or Pipenv

Installation

  1. Clone the repository
git clone https://github.com/Jospin6/askflow.git
cd askflow 

Run the application locally

```bash
# Start API server
cd api && uvicorn main:app --reload

# Start UI (in separate terminal)
cd ui && streamlit run app.py
```

👨‍💻 Author

Built with ❤️ by Jospin Ndagano

About

AskFlow is an intelligent chatbot application that leverages advanced AI decision-making to provide accurate responses by either answering directly from its knowledge or performing real-time internet searches using Tavily Search API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published