outbound-agents

Have the agent write one message again

Throw away the agent's words for one message and have it write them again, optionally with a note on what to change ('shorter', 'mention their new office'). A message in the sequence's cadence is rewritten in the background, at the message's usual price, and appears on the contact's conversation once written. A reply is rewritten straight away as a new draft that waits for approval in the inbox. Refused for a message that has already been sent, one the agent is writing right now, one waiting on a person in the approval queue unless from_task says the ask comes from that task (which is then cancelled), and a preview.

post/outbound-agents/{agent_id}/messages/{message_id}/regenerate/

Request

  • Base URL: https://api.getoneprofile.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.getoneprofile.ai/outbound-agents/{agent_id}/messages/{message_id}/regenerate/
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Path parameters

agent_idstring uuid required
message_idstring uuid required

Request body

from_taskboolean

True when the ask comes from the message's own task in the approval queue. That task reads Writing again while the agent writes the message again, then comes back waiting for a person; without it, a message waiting for approval is refused.

steer_textstring nullable

A note on what to do differently, such as 'shorter' or 'open on their new funding round'. Leave it out to have the agent simply try again; a reply keeps the note its last draft was written with.

Response

Successful Response

draft_idstring uuid nullable required

For a reply, the new draft now waiting for approval in the inbox. Null for a cadence message, and null for a reply when the agent found nothing it could usefully say.

kind'email' | 'linkedin_connection_note' | 'linkedin_message' | 'linkedin_inmail' | 'reply_email' | 'reply_linkedin' required

What one written message is, which decides its rules, its length and its channel.

message_idstring uuid required

The message the agent was asked to write again.

Changes

No recorded changes to this operation across all 1 revision of this API.