Good day, Is there anyone that could please possi...
# support
f
Good day, Is there anyone that could please possibly assist me with a Flutter to Trengo integration via RudderStack? Our app is a messaging app very similar to WhatsApp that assists students to connect to university lecturers. We require basic messaging capability like WhatsApp does with Trengo. I have already created a custom channel on Trengo and connected the source (Flutter app) to destination (Trengo).
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
a
What is the issue you are facing @famous-lamp-53775 with integration
m
You can try this doc as well, if not yet
f
Thanks @acceptable-motorcycle-85971 @microscopic-gpu-51660. I had a look at that document. I have RudderStack all initialised. For now I would just like to send a simple text message to Trengo via our app via RudderStack. So far I have:
Copy code
RudderTraits traits = RudderTraits();
      traits.putFirstName(widget.peerData.name);
      traits.putPhone(widget.peerData.mobile);

      globalRudderStackService
          .getRudderStackClient().identify(
        "userId", 
        traits: traits,
      );

      traits.put("boolean", true);
      traits.put("string", textEditingController.text);
      traits.put("date", DateTime.now().millisecondsSinceEpoch);

      Map context = await globalRudderStackService
          .getRudderStackClient()
          .getRudderContext();
      print(context["traits"]);
Will this allow me to send a message to Trengo? Please advise.
a
You can use the identify() call to create/update the contact with the given traits in Trengo and track() call to create a ticket for a given user (passed in identify call) in Trengo.
Are you facing any issue with the above setup?
f
Thank you @acceptable-motorcycle-85971. The above code runs and steps through fine however it is not creating the ticket on Trengo.
Copy code
widget.peerData.mobile
is our mobile number used for our Trengo board. So you say I should use track() via identify() to create the actual ticket?
a
You will need to use track() call post identify() call to create a ticket.
Are you able to create a contact in Trengo using identify() call?
f
Copy code
RudderProperty property = RudderProperty();
property.put("text_event", textEditingController.text);
await globalRudderStackService.getRudderStackClient().track("text_event", properties: property);
Unhandled Exception: Invalid argument: Instance of 'RudderProperty' A contact is not being created via the identify call on Trengo at the moment.
k
Hey @famous-lamp-53775, where are you seeing the above exception ?
CC <!subteam^S04QT1G74Q3|@sdk-team>
f
Thanks @kind-carpenter-27609 <!subteam^S04QT1G74Q3|@sdk-team>. The exception is no longer showing.
These are the issues on the Rudderstack dashboard for destinations on the Events tab. Internal Server Error and Bad Request. @acceptable-motorcycle-85971
@kind-carpenter-27609 ☝️
Error code 400 {"response":"Application Opened is not present in Event-Map template keys, aborting event","firstAttemptedAt":"2023-03-20T142128.486Z","content-type":""}
a
For the above error You need to map the event on the RudderStack dashboard
How it will appear on the Trengo dashboard
f
Ok thanks @acceptable-motorcycle-85971 I'll take a look.