
Designing API Specs with AI
Simplify your API designs by generating API specifications with AI. Use natural language to create prompts and let Einstein Generative AI build APIs for you. Pre-trained large language models (LLMs) within the Salesforce Shared Trust Boundary power these capabilities and are at the core of API spec generation in Anypoint Code Builder.
Anypoint Code Builder Generative AI API specifications is available on US, EU, Canada, and Japan cloud hosts. |
Trust Layer
The generative AI trust layer bridges Anypoint Platform and the LLMs, as shown in this flow:

1 | The Anypoint Code Builder user creates a message based on their use case and sends it to Agentforce. |
2 | To minimize inaccurate responses (the AI "hallucination" effect), messages are grounded with factual MuleSoft proprietary data and user context. |
3 | To ensure the data is sent safely to the external LLM, the message is sent to Open AI via the secure gateway. |
4 | To keep your data secure, all data remains in Salesforce. |
5 | After the LLM generates a response, the content is sent back through the secure gateway. |
6 | MuleSoft validates the generated output to ensure the generated flow works within the MuleSoft ecosystem. |
7 | Anypoint Code Builder logs the message and generated responses for monitoring before surfacing the validated response in Anypoint Code Builder. |
This feature uses generative AI, which is known to include inaccurate or harmful responses. Before implementing this feature, review the output for accuracy and safety. You assume responsibility for the output when making business decisions. |