@@ -224,6 +224,9 @@ intercom.conversations.reply(id: conversation.id, type: 'admin', admin_id: '123'
224224# User (identified by email) replies with a comment and attachment
225225intercom.conversations.reply(
id: conversation.id,
type: ' user' ,
email: ' [email protected] ' ,
message_type: ' comment' ,
body: ' foo' ,
attachment_urls: [
' http://www.example.com/attachment.jpg' ])
226226
227+ # reply to a user's last conversation
228+ intercom.conversations.reply_to_last(type: ' user' , body: ' Thanks again' , message_type: ' comment' , user_id: ' 12345' , admin_id: ' 123' )
229+
227230# Open
228231intercom.conversations.open (id: conversation.id, admin_id: ' 123' )
229232
@@ -244,6 +247,12 @@ intercom.conversations.reply(id: conversation.id, type: 'admin', admin_id: '123'
244247# Reply and Close
245248intercom.conversations.reply(id: conversation.id, type: ' admin' , admin_id: ' 123' , message_type: ' close' , body: ' bar' )
246249
250+ # Admin reply to last conversation
251+ intercom.conversations.reply_to_last(intercom_user_id: ' 5678' , type: ' admin' , admin_id: ' 123' , message_type: ' comment' , body: ' bar' )
252+
253+ # User reply to last conversation
254+ intercom.conversations.reply_to_last(intercom_user_id: ' 5678' , type: ' user' , message_type: ' comment' , body: ' bar' )
255+
247256# ASSIGNING CONVERSATIONS TO ADMINS
248257intercom.conversations.reply(id: conversation.id, type: ' admin' , assignee_id: assignee_admin.id, admin_id: admin.id, message_type: ' assignment' )
249258
0 commit comments