Thank you and yes, I am creating and filling IntegrationTaskInfo and IntegrationSynchronizationInfo, then I am retrieving the BaseIntegrationConnector by calling IntegrationHelper.GetConnector and finally I am calling BaseIntegrationConnector.ProcessInternalTask(IntegrationTaskInfo). It works.
I am doing everything in ContactAutomationAction.Execute, I haven't created that event handler.