Skip to main content

Technical Reference

How Rally works under the hood — the data pipeline, AI models, and automation that power your engagement workflow.

Pipeline Architecture

Rally runs a four-stage AI pipeline to find, analyze, and prepare engagement opportunities.

1

Ingest

Apify

2

Analyze

Gemini

3

Score

Claude

4

Surface

Claude

Apify
Gemini
Claude
Claude

AI Prompt Chain

A chain of specialized prompts, each building on the previous output.

Stage 1
video-analysis

Gemini 2.0 Flash analyzes the actual video — visual content, audio, captions, mood, brand safety, and suggested comment angles.

Stage 2
curation-analysis

Claude scores relevance (0-100), timing (0-100), and reach (0-100), producing a composite confidence score with reasoning.

Stage 3
curation-comments

Claude generates 3 comment variants using your brand voice, video context, and scoring insights. Each has a distinct style.

Stage 4
comment-critique

Self-critique loop — checks comments against voice guidelines, banned words, and quality standards. Regenerates up to 2x.

Scoring Model

The composite score (0-100) is the primary ranking metric.

0–100composite score
RelevanceHigh

Topic match, audience overlap, hashtag alignment

TimingHigh

Hours since posted, comment window opportunity

ReachMedium

Views, likes, followers, growth velocity

SentimentFactor

Positive content preferred

ControversyNegative

High controversy = lower score

Brand SafetyFilter

Unsafe = excluded entirely

Posts scoring below 65 are filtered out by default. Threshold is configurable per brand.

Automation Schedule

Background jobs run on scheduled intervals to keep your queue fresh.

Content fetch

Pull fresh TikTok content via Apify

Every 4 hours

Video analysis

AI analysis + scoring of fetched videos

Every 2 hours

Agent cycle

Observe/decide/act loop for surfacing

Every 15 min

Learning pass

Process user feedback to improve scoring

Every hour

Workmate report

Generate daily summary and approval queue

Daily at 7am

Feedback Loop

Every action you take teaches Rally what matters to your brand.

Approve

Reinforce this post type + voice style

Skip

Deprioritize this topic or creator

Edit

Adjust voice and tone calibration

Regenerate

Quality bar not met — improve generation

Rally uses the last 50 actions to build learned preferences via the curation-analysis-with-feedback prompt variant.