The current API is very limited when using automation processes through the API. Please expand API access or allow bots to login directly.