
Installation
The conversation component requires one of the following:- Surge Conversation ID
- Surge Contact ID
- Phone Number
With a conversation ID
The simplest version of the conversation component can be embedded like this:{SURGE_USER_ID}
and {ACCOUNT_TOKEN}
are required parameters. You can find
them in the Surge dashboard. We will also be providing more robust auth options
in the near future.
The {CONVERSATION_ID}
parameter is also required and should be the ID of the
conversation to display.
With a contact ID
{SURGE_USER_ID}
and {ACCOUNT_TOKEN}
are required parameters. You can find
them in the Surge dashboard. We will also be providing more robust auth options
in the near future.
The {CONTACT_ID}
is also required in this instance and should be the ID of the
contact whose conversation should be displayed.
With a phone number
{SURGE_USER_ID}
and {ACCOUNT_TOKEN}
are required parameters. You can find
them in the Surge dashboard. We will also be providing more robust auth options
in the near future.
The {PHONE_NUMBER}
is the phone number for the person whose conversation
should be displayed, or to whom messages should be sent if no conversation
exists. This parameter is required.
The {FIRST_NAME}
and {LAST_NAME}
parameters are optional, but highly
encouraged as they will allow the contact’s information to be displayed properly
in the inbox. If no contact or conversation exists yet for the given phone
number, these parameters will be attached to the contact when a message is sent
and the contact is created.