SunshineConversationsClient::Author

August 27, 2025 ยท View on GitHub

Properties

NameTypeDescriptionNotes
typeStringThe author type. Either "user" (representing the end user) or "business" (sent on behalf of the business).
subtypesArray<String>A string array that indicates the author's subtypes. Messages from &quot;business&quot; type with an &quot;AI&quot; subtype are generated by AI and a disclaimer is appended to the text of the message sent to the customer. For third-party channels, the disclaimer is applied for image, file, and text message types. Message with an &quot;activity&quot; subtype are generated by system activities.[optional]
user_idStringThe id of the user. Only supported when `type` is user.[optional]
user_external_idStringThe externalId of the user. Only supported when `type` is user.[optional]
display_nameStringThe display name of the message author.[optional]
avatar_urlStringA custom message icon URL. The image must be JPG, PNG, or GIF format.[optional]

Example

require 'sunshine-conversations-client'

instance = SunshineConversationsClient::Author.new(
  type: business,
  subtypes: null,
  user_id: 5963c0d619a30a2e00de36b8,
  user_external_id: your-own-id,
  display_name: Steve,
  avatar_url: https://www.gravatar.com/image.jpg
)