Hi Abdelhaq,
Try adding the command a different way.
First, I found the command chain you are talking about on the doc site here:
http://docs.genesys.com/Documentation/IW/8.1.4/Developer/ChatAccording to the docs there is 1 command in that chain named "Accept". You will have to decide if you want to add your custom command before or after the Accept command. To add, do this:
commandManager.InsertCommandToChainOfCommandBefore("InteractionChatAcceptChat", "Accept",
new List<CommandActivator>() {
new CommandActivator()
{
CommandType = typeof(YourCustomCommandClassName), Name = "SomeNameYouChoose"
}});
The above code would register your command to run before the Accept command.
Additionally, something I found confusing at first was if you return true the command chain halts and it is similar to saying, "this command failed, stop the chain". If you return false, this represents, "the command completed, move on to the next command in the chain".
Regards,
Andrew