Issue Sending Messages from Creatio Using Custom Chat Provider

Hello,

I’m currently working on integrating a custom chat provider in Creatio, following the official documentation. I’ve successfully configured the incoming message handling, which is working as expected.

However, I’m facing an issue when trying to send messages from Creatio to the custom provider.

Initially, I encountered an error when attempting to use the chat module for sending messages. I resolved this by explicitly binding the IOutcomeMessageWorker interface to my custom implementation using the "ThirdParty" key, as shown below:

protected void BindInterfaces() {
   ClassFactory.Bind<IAttachmentsLoadWorker, TestAttachmentLoadWorker>("Test");
   ClassFactory.Bind<IProfileDataProvider, TestProfileDataProvider>("Test");
   ClassFactory.Bind<IOutcomeMessageWorker, TestOutcomeMessageWorker>("ThirdParty");
   ClassFactory.Bind<IOperatorRoutingRule, TestOperatorRoutingRule>("TestRule");
}


After this change, the error disappeared and messages are now being saved in Creatio. However, it appears that the messages are not being sent to my custom worker (TestOutcomeMessageWorker), as I don’t see any logs or server-side activity indicating that the worker is being triggered.

Could someone please guide me on how to ensure that outgoing messages are properly routed to the custom worker? Am I missing any configuration or message routing logic?

I am using online instance. 

Could it be issue of mismatch of MsgSettingsId ? I am not sure how to access the SQL tables as I am using Online Instance.

Thanks in advance for your support!

Like 0

Like

2 comments
Best reply

Hello Madhav,

In order to check if you custom worker was triggered you can check the Network tab in the browser Dev Tools and look for the request made when sending the message. The request URL might look like this  
.../0/rest/TestOutcomeMessageWorker/SendMessage
Then you will be able to investigate the response and check the errors if there were any.

Also keep in mind that according to the documentation you have to set up storage of custom channel data so you will need to have the access to the database to create the corresponding table and register the custom channel in the database as described.

Also the following community post might be useful for you
https://community.creatio.com/questions/override-sending-messages-custo…
 

Hello Madhav,

In order to check if you custom worker was triggered you can check the Network tab in the browser Dev Tools and look for the request made when sending the message. The request URL might look like this  
.../0/rest/TestOutcomeMessageWorker/SendMessage
Then you will be able to investigate the response and check the errors if there were any.

Also keep in mind that according to the documentation you have to set up storage of custom channel data so you will need to have the access to the database to create the corresponding table and register the custom channel in the database as described.

Also the following community post might be useful for you
https://community.creatio.com/questions/override-sending-messages-custo…
 

Hello Iryna Oriyenko,

Thanks !!, This issue is resolved !!

Show all comments