Answered

Creating a conversation from a visitor returning an error "Lead Not Found"

  • 17 May 2022
  • 1 reply
  • 73 views

Hello!

I am trying to create a conversation from a visitor per the doc: https://developers.intercom.com/intercom-api-reference/reference/create-a-conversation

 

I've tried setting `type` to `contact` as indicated. When passing a `user_id` like so:

 

{

"from": {

"type": "contact",

"user_id": "1234567"

},

"body": "Hey"

}

 

I received the error `Lead Not Found` and the conversation / contact with role lead are not created as expected.

 

How can I create conversations from visitors?

 

Additionally, in an ideal world I would be able to pass a singular user ID (not knowing if this is a visitor or existing Intercom user) and then create a conversation attached to the provided user if they exist, or instead a new user if they did not. Is this at all feasible?

 

Thanks for any help.

icon

Best answer by Lisa B11 19 May 2022, 09:30

View original

1 reply

Hey @emily h12​ 👋

 

It might be that you are using an older version of the REST API or referencing an older version and so getting syntax incorrect. Would you mind sending us a message through the Messenger for investigation into the logs of the calls you are making please 🙌

Reply