Sequences

Preview an AI-written step

Writes one message or email from the brief for a real lead in the campaign, the same way Bavlio writes it when the lead reaches the step, and returns it without saving or sending anything. Send after_lead_id to write the next preview for the lead after that one. Previews are free and limited per workspace; past the limit the answer is 429 with the seconds to wait.

POST
/campaigns/{id}/sequence/preview

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

idstringrequired

Campaign id.

Body

application/json
kindenum<string>required

Available options: message

briefstringrequired

The step's brief: what Bavlio should write, in the sender's words.

Required string length: 1 - 1000

after_lead_idstring

The lead the previous preview was written for. Bavlio writes the next preview for the lead after it, so the same brief can be tried on someone else.

Response

application/json

StepPreview

leadobjectrequired

The campaign lead the preview was written for.

textstringrequired

The message or email body Bavlio wrote for this lead from the brief.