The method
Use this prompt to design API integration workflows. Specify the APIs involved, desired data transformations, and error handling. Paste into ChatGPT/Gemini/Claude. Best for designing scalable and robust integrations.
The prompts
Prompt 1
I need to integrate our CRM (Salesforce) with our marketing automation platform (Marketo). The goal is to automatically sync new leads from Marketo to Salesforce, and update lead statuses in Marketo based on sales activity in Salesforce. Design a robust workflow for this integration, including data mapping rules, error handling strategies (e.g., retry mechanisms, logging), and considerations for scalability. Specify the necessary API calls for each system and the expected data formats. Prioritize a solution that minimizes data loss and ensures near real-time synchronization.
Prompt 2
We are building a new e-commerce platform and need to integrate it with our existing inventory management system. The inventory management system exposes a REST API. Design a workflow that automatically updates the inventory levels in the inventory management system whenever a product is sold on the e-commerce platform. The workflow should include error handling, such as logging failed updates and retrying failed API calls. Also, consider the potential for race conditions (e.g., two orders being placed simultaneously for the last item in stock) and propose strategies to prevent them. The response should cover API endpoints, data transformation requirements, and error recovery procedures. Assume the e-commerce platform sends order data in JSON format.