Contact Us 1-800-596-4880

Creating API Specs with AI

logo cloud IDE Cloud IDE

logo desktop IDE Desktop IDE

The Generative API Specification feature unlocks AI capabilities for API design journeys by generating and mocking API specs from natural language. The feature reduces the time spent on API design by simplifying the creation of rigid, syntax-heavy specs. You can access the feature after creating an API project that’s in the supported RAML 1.0 or OAS 3.0 format or from the Open Agentforce icon within the project. The system supports multi-turn conversations and provides validated API specifications.

Before You Begin

Before you start creating your API spec:

Design an API Spec with AI

To design an API spec with AI, begin by reviewing the starter prompt for guidance on the context the agent needs.

  1. Describe your API spec in the chat. The agent prompts you for clarification if it doesn’t understand your request.

    Include these required details and consider including optional details to generate a more precise spec:

  2. Send your message. The agent creates a validated API spec.

Governance isn’t included in the validation.
  1. Review the spec and continue the conversation if you’d like to make changes.

  2. Click Replace to add the generated API spec to your project. All file content is replaced by the inserted code.

    You can also copy the generated API spec to your clipboard by clicking Copy.

Give Feedback on Agent Responses

Share your feedback about the agent’s response by clicking thumbs up or thumbs down.

View Conversation History

To view your past conversations, click Open chat history. Your last 30 days of conversations show.

Start a New Chat

You can only create an API spec if you have a project open in the supported RAML 1.0 or OAS 3.0 format. Click Create API Spec from the New Chat dropdown to create a new API spec.

The option doesn’t show for projects that aren’t in the supported format.