A Telex Modifier Integration that summarizes text messages, uploaded files (PDF and DOCX), and provides legal assistance via /legal
commands.
This integration enhances Telex channels by:
- Summarizing text messages and files (
.pdf
,.docx
) using Hugging Face’sfacebook/bart-large-cnn
. - Providing legal answers via
deepset/roberta-base-squad2
.
- Node.js (LTS)
- Git
- Hugging Face API Token
- Clone:
git clone https://github.com/telexintegrations/LegalDoc-AI-Summarizer.git
- Install:
npm install
- Configure
.env
:HUGGING_FACE_TOKEN=your_token_here
- Start:
npm start
- Use Postman with
http://localhost:5577/webhook
. - Examples in README (from previous versions).
- Vercel URL:
https://legaldoc-ai-summarizer.onrender.com/webhookk
- integration.json URL:
https://raw.githubusercontent.com/telexintegrations/LegalDoc-AI-Summarizer/main/integration.json
- Steps:
- Deployed with Render (Build Command:
npm install && npm run build
, Start Command:node ./dist/index.js
). - Set
HUGGING_FACE_TOKEN
in Render Environment Variables.
- Deployed with Render (Build Command:
[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