Optional parameters

Optional URL parameters: scope, conversation, phone, provider, and operator

After the required parameters, you can pass options that control what the chat UI opens.

Optional parameters

ParameterRequiredDescription
scopefalseUI scope: conversations (conversation list) or messages (a specific chat). Defaults to conversations. If scope is omitted but phone is set, messages is used
conversation_idfalseConversation ID when scope=messages. Required if phone and provider are not set
phonefalsePhone number used to find the contact when scope=messages. Example: +1234567890
providerfalseChannel provider when opening by phone. Example: whatsapp, whatsapp_business
current_user_idfalseOperator ID that sends messages in the chat UI. Example: 85328

Example URLs

Conversation list:

text
https://msg.pact.im/pact_embed?company_uuid=1234a567-2d3a-4dfd-b021-489ead21b830&signature=SIGNATURE&scope=conversations

Conversation by ID:

text
https://msg.pact.im/pact_embed?company_uuid=1234a567-2d3a-4dfd-b021-489ead21b830&signature=SIGNATURE&scope=messages&conversation_id=12345

Conversation by phone and provider:

text
https://msg.pact.im/pact_embed?company_uuid=1234a567-2d3a-4dfd-b021-489ead21b830&signature=SIGNATURE&scope=messages&phone=+1234567890&provider=whatsapp

Pass the finished URL as src when you add the iframe.

Search…

Start typing to search