Skip to content

Latest commit

 

History

History
56 lines (50 loc) · 3.55 KB

File metadata and controls

56 lines (50 loc) · 3.55 KB

Zernio::UpdateCommentAutomationRequest

Properties

Name Type Description Notes
name String [optional]
trigger String What fires the automation. Changing it detaches the automation from its bound post or story (a post id and a story id are different objects), unless this same request sets a new binding. 'story_reply' is Instagram only. [optional]
keywords Array<String> [optional]
match_mode String How a keyword is compared with the comment. 'contains' (default) matches anywhere, even inside another word (keyword 'app' fires on 'happy'). 'word' matches the keyword only as a standalone word. 'exact' requires the whole comment to be exactly the keyword. [optional]
exclude_keywords Array<String> Comments containing one of these never trigger the automation, even when a trigger keyword also matches. Compared using the same matchMode. [optional]
typo_tolerance Boolean Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched. [optional]
dm_message String [optional]
buttons Array<DmButton> Inline DM buttons (1-3). Pass [] to clear all buttons. [optional]
template CommentAutomationTemplate [optional]
comment_reply String [optional]
dm_message_variations Array<String> Alternate DM texts for random rotation (see create). Pass [] to clear. [optional]
comment_reply_variations Array<String> Alternate public replies for random rotation. Pass [] to clear. [optional]
link_tracking Boolean Wrap link buttons in a tracked redirect to count clicks. Pass false to send links untouched. [optional]
click_tag String Tag applied to a contact when they click a tracked link (requires linkTracking). Empty string clears it. [optional]
also_match_in_dms Boolean Also fire these keywords on a plain inbound DM. Enabling it requires the automation to end up with at least one keyword (this request's keywords if you send them, otherwise the stored ones) and is rejected on story_reply automations. [optional]
dm_delay_seconds Integer Seconds to wait after the trigger before sending the DM. Send 0 to clear the delay and reply immediately. [optional]
comment_reply_delay_seconds Integer Seconds to wait before posting the public comment reply. Send 0 to clear it. The reply never goes out before the DM. [optional]
audience CommentAutomationAudience [optional]
follow_gate CommentAutomationFollowGate [optional]
is_active Boolean [optional]

Example

require 'zernio-sdk'

instance = Zernio::UpdateCommentAutomationRequest.new(
  name: null,
  trigger: null,
  keywords: null,
  match_mode: null,
  exclude_keywords: null,
  typo_tolerance: null,
  dm_message: null,
  buttons: null,
  template: null,
  comment_reply: null,
  dm_message_variations: null,
  comment_reply_variations: null,
  link_tracking: null,
  click_tag: null,
  also_match_in_dms: null,
  dm_delay_seconds: null,
  comment_reply_delay_seconds: null,
  audience: null,
  follow_gate: null,
  is_active: null
)