Skip to content
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

[NEW] Add twilio whatsapp template custom fields #185

Merged
merged 2 commits into from
Sep 6, 2023
Merged

Conversation

bhardwajaditya
Copy link

@bhardwajaditya bhardwajaditya commented Aug 2, 2023

Closes: WideChat/Rocket.Chat#1385

Sample CX custom payload:

{
"customFields": {
"contentSid": "HXeb7f68d72e40185a3a64f649348e5f69",
"messagingServiceSid": "xxxxxxxxxxx", #RC will populate
"contentVariables": {
"1": "Aditya"
}
}
}

@ear-dev
Copy link

ear-dev commented Aug 2, 2023

@bhardwajaditya Does Rocketchat or the Dialogflow.app keep track of the messageServiceSid? I'm not sure if the CX agent has that info.... looking into it, but I doubt it.
It might be the case that if RC receives a customPayload for this use-case, RC might have to fill in the messageServiceSid. Is that possible?

@ear-dev
Copy link

ear-dev commented Aug 3, 2023

DESIGN:

  • When receiving messages from twilio, grab the messageServiceSID and put it in an RC customField in the room db entry.
  • When sending template messages in the twilio integration, grab the msSID from the custom field and finish populating the customField from the CX.agent.

@ear-dev ear-dev merged commit 2a37158 into master Sep 6, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WhatsApp interactive messages
2 participants