Skip to content

A Telex Modifier Integration that summarizes text messages, uploaded files (PDF and DOCX), and provides legal assistance via `/legal` commands.

License

Notifications You must be signed in to change notification settings

telexintegrations/LegalDoc-AI-Summarizer

Repository files navigation

LegalAidSummaryBot

A Telex Modifier Integration that summarizes text messages, uploaded files (PDF and DOCX), and provides legal assistance via /legal commands.

Description

This integration enhances Telex channels by:

  • Summarizing text messages and files (.pdf, .docx) using Hugging Face’s facebook/bart-large-cnn.
  • Providing legal answers via deepset/roberta-base-squad2.

Prerequisites

  • Node.js (LTS)
  • Git
  • Hugging Face API Token

Setup

  1. Clone: git clone https://github.com/telexintegrations/LegalDoc-AI-Summarizer.git
  2. Install: npm install
  3. Configure .env: HUGGING_FACE_TOKEN=your_token_here
  4. Start: npm start

Testing Locally

  • Use Postman with http://localhost:5577/webhook.
  • Examples in README (from previous versions).

Deployment

  • Vercel URL: https://legaldoc-ai-summarizer.onrender.com/webhookk
  • integration.json URL: https://raw.githubusercontent.com/telexintegrations/LegalDoc-AI-Summarizer/main/integration.json
  • Steps:
    1. Deployed with Render (Build Command: npm install && npm run build, Start Command: node ./dist/index.js).
    2. Set HUGGING_FACE_TOKEN in Render Environment Variables.

Screenshots

  • Text Summary: Text Summary
  • PDF Summary: PDF Summary
  • Chatbot Response: Chatbot Response

[Paste your current README.md content, adding:]\n\n## Telex Testing\n- Tested in Telex test organization with channel ID: [your-telex-channel-id].\n- Webhook URL: https://ping.telex.im/v1/webhooks/0195387e-00d5-733c-b972-d824624c6dbd.\n

About

A Telex Modifier Integration that summarizes text messages, uploaded files (PDF and DOCX), and provides legal assistance via `/legal` commands.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published