How praveen0815/ai-agent-practice- works
This is a Slack-based AI agent for researching and assessing new community members. A Slack join event fetches member details, gathers basic web and GitHub research, uses an OpenAI model to produce a fit analysis, stores it, and posts it to a Slack channel; the database record is then marked as sent. The app also exposes an Express health endpoint and a development-only analysis endpoint. The graph reflects the sampled source; some event and research details are omitted from the excerpts.
Main entry points: index.js Analysis workflow · db.js PostgreSQL analysis store
Components 13
Event and HTTP ingress
- Slack event app
index.js - Member lookup
index.js - Express endpoints
index.js
Member analysis
- Analysis workflow
index.js - Basic research
index.js - AI analysis
index.js
Analysis persistence
Other components
- Slack member
- HTTP caller
- GitHub search
- Company website
- OpenAI model
- Analysis channel
Connections 14
- Slack member → Slack event app: joins channel
index.js - Slack event app → Member lookup: gets member
index.js - Member lookup → Analysis workflow: analyzes member
index.js - HTTP caller → Express endpoints: requests endpoint
index.js - Express endpoints → Analysis workflow: runs test analysis
index.js - Analysis workflow → Basic research: requests research
index.js - Basic research → GitHub search: searches users
index.js - Basic research → Company website: fetches website
index.js - Analysis workflow → AI analysis: requests assessment
index.js - AI analysis → OpenAI model: invokes model
index.js - Analysis workflow → PostgreSQL analysis store: saves analysis
index.js - Analysis workflow → Analysis channel: posts result
index.js - Analysis workflow → PostgreSQL analysis store: marks sent
index.js - Slack event app → PostgreSQL analysis store: initializes store
index.js