Transform your make.com scenarios efficiently by adapting Claude modules to use OpenRouter, enabling seamless model switching and automatic fallback capabilities. This advanced technique allows you to update complex automation workflows without the tedious process of manual remapping, while gaining the flexibility to switch between different AI models and providers instantly.
By leveraging make.com’s DevTools and blueprint manipulation, we can dramatically reduce the time needed to update multiple modules across entire scenarios.
In my video, I demonstrate how to adapt one of our existing blogging automation blueprints to use OpenRouter instead of calling Anthropic Claude directly:
Benefits of Using OpenRouter
OpenRouter offers several advantages, including the ability to quickly switch between different AI models and access to free models. One of the most important features is built-in resilience through automatic fallback – if OpenRouter cannot get a response from Claude, it will automatically fall back to using GPT-4. The service is cost-effective, with only a 5% charge for credits plus a small 35-cent fee, while maintaining the same pricing as calling Claude 3.5 directly from Anthropic.
Prerequisites
Before adapting your scenarios, you’ll need to:
- Set up an OpenRouter account
- Add credits to your account
- Create a connection in make.com
- Install the make.com DevTools extension
Using DevTools for Quick Module Swapping
The process involves using the make.com DevTools extension to perform quick swaps between modules. To access DevTools, press Control+Shift+I (or Command+Shift+I on Mac) while in your make.com scenario. The tools section provides various options for swapping apps, connections, and variables.
Blueprint Manipulation Technique
A more advanced approach involves exporting and editing blueprints directly. This method requires:
- Exporting the original blueprint
- Editing the JSON in a text editor
- Modifying message formats to match OpenRouter’s requirements
- Using find-and-replace to update variable mappings
- Reimporting the modified blueprint
Setting Up Model Fallback
To ensure resilience in your automation, configure the automatic fallback feature in OpenRouter’s settings. This can be done by setting a default model (such as GPT-4) that will be used if the primary model fails to respond, ensuring your automation continues to run smoothly.