Home
viamobiCompany

AI sales for creator content

An agent that chats with subscribers on a creator’s behalf and sells their photos and videos.

≈+30%

purchase conversion

−84%

median response time

Compared with human operators, in chats containing sales offers.

STACK

  • LangGraph
  • Python
  • Pydantic
  • PostgreSQL
  • FastAPI
  • Langfuse

The commercial decision and the response

CONTEXT / OFFER / RESPONSE / OUTCOMEPan the diagram or select a stage below
The commercial decision and the responseThe commercial decision and the responseConversation and purchase history → a reply or a paid media offer.Subscriber messageconversation · media interestSession contextmemory · prior actionsSales stateoffer card · purchaseCreator photos and videosbundles · format · priceChoose the next actionIntent → options → strategy and reviewContinuethe conversationOfferpaid mediaHelp witha purchaseVerified actioncontent and terms bound to their sourceExpress the selected actionResponse plan → drafts → assessmentResponse purpose and selected contextResponse draftsIndependent assessmentrelevance · factsconversation continuityOne consistent outcomeReply + offercontent, composition and price alignSales eventsdelivery · confirmed purchaseLangfuse · replaydecisions and assessmentsThe outcome becomes context for the next turn

The decision distinguishes continuing the conversation, offering paid media and helping with a purchase. Response generation and evaluation follow the selected action.

DIAGRAM NOTE

An abstracted architecture; conversations, prompts, pricing rules and catalogue data are private.

Scroll diagram ↔
Tools by task

Agent & context

Python · LangGraph · Pydantic · YAML

Intent, context, sales state and configurable graphs with typed results.

Content & commerce

Media catalogue · SQL · Structured output

Creator photo and video selection using exposure and purchase history, with offer composition and price checks.

Response evaluation

LLM-as-a-judge · Langfuse · Offline replay

Independent draft assessment, source checks and failure analysis on saved scenarios.

Production service

FastAPI · PostgreSQL · Docker

Conversation history and state, persistence before delivery, and confirmed purchase events.

Architecture, step by stepHighlighted data flow and technical walkthrough

From a subscriber’s message to conversation and a media sale

Scroll to highlight each stage and its data flow.

01 / 05
From a subscriber’s message to conversation and a media saleCONTEXT AND INTENTSALES DECISIONFROM ACTION TO WORDINGOUTCOME AND FEEDBACKreply or supportrepairSubscriber messageconversation · mediainterestDialogue contextmessages · purchasesRequestinterpretationintent and its referentConversationworkflowstate · boundariesCreator photos andvideoscatalogue · bundles ·pricesAvailable optionscomposition · price ·historySales strategyselection and reviewSelected actionreply · offer · supportResponse planpurpose · facts · contextResponse draftsone selected actionIndependentassessmentrequest · facts ·continuityReply and offerdirect message · mediaDelivery andpurchaseconfirmed eventsSales statecontext for the next turnTraces and scenario replaydecision · drafts · assessments

Pan to explore the diagram ↔

DataModelStateEvaluation

Recover the conversation context

01

Recover the conversation context

The agent relates a subscriber’s message to conversations and purchases: is it continuing the chat, expressing interest in new media or asking about an earlier offer? Confirmed purchases stay separate from inferred intent.

02

Choose when and what content to offer

The strategy selects the next step: continue chatting, offer photos or videos, or help with a purchase. The catalogue, prices and exposure history constrain available offers; the choice receives an independent review.

03

Plan a reply for the selected action

Selling, continuing the conversation and providing support have different purposes. The plan gives the writer the selected action, available facts and relevant context.

04

Compare response drafts

Assessment checks whether each draft fulfills the request and fits the facts and conversation. An unsuitable response enters a bounded repair path.

05

Continue from the actual outcome

The reply is persisted before delivery. A confirmed purchase updates sales state, while traces connect the result to the decision and response drafts.