The TypeScript/JavaScript SDK is no longer the primary method within AskUI. It is now the previous generation. We strongly recommend switching automation logic to the Python SDK which is AskUI's primary language to leverage the full power of the Caesr.ai AI Agent platform. Stop writing unnecessary control flow functions and start telling the AI what you need.
The Old Problem Coding Simple Logic
In the previous generation automation environment achieving code reusability for conditional actions, like checking if an element is present and reacting to it, required writing custom utility functions. This approach created significant code maintenance overhead as developers were constantly writing repetitive logic.
The New Solution Declarative Logic with Caesr.ai Prompts
With Caesr.ai the AI Agent handles complex control flow and conditional logic natively based on your instructions. The entire manual function is replaced by a single declarative sentence in the Caesr.AI interface. This eliminates the need for coding, function definition, or maintenance.
Caesr.ai Prompt Example Replacing Function Logic
Start the 'Settings' app. Wait 10 seconds for the text 'Update Complete' to appear. If it appears, click the 'Finish' button. If it does not appear, click the 'Troubleshoot' button.Role of the Python SDK
While the Caesr.AI is the primary no-code interface for simple tasks, the Python SDK remains the recommended method for developers. It acts as the powerful entry point for advanced users who require deeper integration. This includes setting up the test execution environment or integrating AI workflows into CI/CD pipelines.
For other complex automation examples powered by a single prompt, explore:
Conclusion
The era of writing repetitive functions for basic automation logic is over. By migrating to Caesr.ai, you leverage the power of natural language automation to create robust, reusable, and self-maintaining workflows, freeing your team from code maintenance.

