Actions114
- Instance Actions
- Message Actions
- Group Actions
- Chat Actions
- Profile Actions
- Event Actions
- Integration Actions
- Call Actions
- Label Actions
- OpenAI Actions
- N8N Integration Actions
- EvoAI Actions
- Template Actions
- Business Actions
OpenAI → Add Credentials
AI-generatedOverview
This node operation allows users to add credentials for the OpenAI API within the n8n workflow automation platform. It is useful for securely storing and managing OpenAI API keys, enabling subsequent nodes to authenticate and interact with OpenAI services. For example, a user can add their OpenAI API key with a custom instance name and credential name to facilitate API calls in later workflow steps.
Use Case Examples
- Adding an OpenAI API key to authenticate requests in a workflow that generates text completions or processes natural language.
- Storing multiple OpenAI API credentials for different projects or environments and selecting the appropriate one during workflow execution.
Properties
| Name | Meaning |
|---|---|
| Instance Name | The name of the OpenAI API instance to identify it within the workflow. |
| OpenAI API Key | The secret API key used to authenticate requests to the OpenAI API. |
| Credential Name | A user-defined name to identify this specific credential for easier management. |
Output
JSON
credentialName- The name assigned to the stored credential.instanceName- The name of the OpenAI API instance.openaiApiKey- The stored OpenAI API key (likely masked or encrypted).
Dependencies
- OpenAI API key credential
Troubleshooting
- Ensure the OpenAI API key is valid and has the necessary permissions to access OpenAI services.
- Verify that all required input properties (Instance Name, OpenAI API Key, Credential Name) are provided and correctly formatted.
- If the node throws an 'Unsupported operation' error, confirm that the resource is set to 'OpenAI' and the operation to 'Add Credentials'.
- Check for network connectivity issues that might prevent the node from securely storing or validating the credentials.