Create Automation Step
Adds a step to an automation’s draft version, directly after previous_step_id, or first when it’s left out. The step that held that position now runs after the new one. Steps can’t be moved, so add each one where it belongs. Setting source_code also needs every read permission listed for previewing a step, which the step’s code reads the account with.
Autorisationer
An Account API key, an App API key, an account access token, an account-scoped user token, or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.
Overskrifter
A unique key that makes this request safe to retry. See Idempotent requests.
255"d9105228-4a08-46b1-8b91-42fed586d383"
Krop
What the step does: wait holds the member for config.delay_seconds, email emails them, and message sends them a message from a team member. A draft step can switch between email and message, which clears config.sender_id. A wait can't become a sending step, or the other way round.
wait, email, message "message"
An email or message step's code: a TSX module whose default export gets the member and returns message.send(), message.skip() or message.exit() from whop:message. An email step sends its subject, its react element as the body and its text as the plain-text part. A message step sends its text. The code can import react and @react-email/components. It reads the account through the whop client from whop:message, which can only read. That client holds every account-level :read permission that both the admin role and Whop AI hold, except payout:account:read, as listed for previewing a step. Setting it, or previewing the step, needs every one of those permissions. Up to 64,000 characters. null on a wait, and until it is written.
"export default () => message.send({ subject: \"Thanks!\", text: \"Thanks for your order!\" });"
Svar
Automation step created
What the step does: wait holds the member for config.delay_seconds, email emails them, and message sends them a message from a team member. A draft step can switch between email and message, which clears config.sender_id. A wait can't become a sending step, or the other way round.
wait, email, message "email"
An email or message step's code: a TSX module whose default export gets the member and returns message.send(), message.skip() or message.exit() from whop:message. An email step sends its subject, its react element as the body and its text as the plain-text part. A message step sends its text. The code can import react and @react-email/components. It reads the account through the whop client from whop:message, which can only read. That client holds every account-level :read permission that both the admin role and Whop AI hold, except payout:account:read, as listed for previewing a step. Setting it, or previewing the step, needs every one of those permissions. Up to 64,000 characters. null on a wait, and until it is written.
"export default () => message.send({ subject: \"Thanks!\", text: \"Thanks for your order!\" });"

