-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reply to api initiated conversation not working #142
Comments
when creating an admin initiated message from the API like in the example below you are not actually creating a conversation but a message. The var message = {
message_type: "email",
subject: "Hey",
body: "Ponies, cute small horses or something more sinister?",
template: "plain",
from: {
type: "admin",
id: "343616"
},
to: {
type: "user",
id: "588a21cc7b1ed4f39f0bf2dd"
}
}
client.messages.create(message, callback); returns: body:
{ type: 'admin_message',
id: '106118468',
created_at: 1496756108,
subject: 'Hey',
body: 'Ponies, cute small horses or something more sinister?',
template: 'plain',
message_type: 'email',
owner:
{ type: 'admin',
id: '343616',
name: 'Kevin Antoine',
email: 'kevin.antoine@intercom.io',
avatar: [Object] } }, The reason why we do not return the A conversation is created only for user-initiated messages. In this case, your workaround using |
Hi @Skaelv |
This is in our backlog for API improvement. I'll close this one as this is related to our API and not specific to intercom-node. |
Is there any new development on that? It has been 1yr+ and we're right now in the need of a fix for that. |
and who should we poke to get this done? |
any updates with it? |
Version info
Expected behavior
After creating and admin or user initiated conversation it would be great to reply to it.
Actual behavior
After creating the admin or user initiated conversation if you try to reply to it providing the conversation id, it's not working.
Steps to reproduce
Logs
body.errors [{"code":"not_found","message":"Resource Not Found"}]
Workaround
I found that I can pass
id: 'last'
and it works but it's more an hack...! (Library code enabling that and doc for last reply)The text was updated successfully, but these errors were encountered: