AI Social Commenting Agent

B2B AI agent that generates contextual stock commentary — scaled to 50+ comments/day.

saras.market
4 min read

# Description

Built an AI commenting agent for a B2B partnership with Commentify — a platform that surfaces relevant LinkedIn and Instagram posts. SARAS wanted to auto-generate contextual comments on stock-related posts using their internal market data. I designed and built the integration end-to-end, and represented SARAS solo in technical discussions with Commentify's CTO.

# Tech Stack

  • Node.js REST API for the commenting endpoint
  • OpenAI for context-aware comment generation
  • Internal DB lookup for stock-specific context injection
  • API key-based middleware for secure B2B authentication
  • Logging service for interaction history and future model training

# Problem

SARAS wanted to engage on social posts about stocks but couldn't scrape platforms (account ban risk). Commentify provided the posts — but comment generation was fully manual. The goal was to automate: take a post, look up internal stock context, generate a relevant comment.

# Solution

Built an API endpoint that Commentify hits with a post_id and post_body. The system queries SARAS's internal database for relevant stock context, feeds it to OpenAI with the post, and returns a generated comment to Commentify's dashboard. Also designed the B2B auth layer (API key-based middleware) for secure backend-to-backend communication and built a logging service to capture all interactions for future analysis.

# Results

Scaled commenting from 10 to 50+/day with zero manual effort. The growth team started posting themselves — no need to hire manual commenters. Partnership secured after solo CTO-to-CTO technical discussion.