Actions88
- Blog Actions
- Get All Posts (Admin)
- Get Post (Admin)
- Create Post (Admin)
- Update Post (Admin)
- Delete Post (Admin)
- Get Categories (Admin)
- Get Category (Admin)
- Create Category (Admin)
- Update Category (Admin)
- Delete Category (Admin)
- Get Tags (Admin)
- Get Tag (Admin)
- Create Tag (Admin)
- Update Tag (Admin)
- Delete Tag (Admin)
- Get Authors (Admin)
- Get All Posts (Public)
- Get Post (Public)
- Get Categories (Public)
- Get Tags (Public)
- Get Posts by Category (Public)
- Get Posts by Tag (Public)
- Section Actions
- AI Resource Actions
- Authentication Actions
- User Actions
- Course Actions
- Lecture Actions
- Enrollment Actions
- Learning Path Actions
- Assignment Actions
- Progress Actions
- Video Actions
- Article Actions
- Quiz Question Actions
- Quiz Choice Actions
- Quiz Submission Actions
- Image Actions
Overview
This node integrates with the Lectful API to manage AI resources related to courses. Specifically, the "Get Course AI Resources" operation retrieves all AI resources attached to a specified course. This is useful for educational platforms or content managers who want to programmatically access AI-enhanced learning materials (such as PDFs, documents, images) linked to their courses.
Practical examples include:
- Automatically fetching all AI resources for a course to display them in a custom learning portal.
- Synchronizing course materials between Lectful and another system.
- Auditing or reporting on AI resources associated with specific courses.
Properties
| Name | Meaning |
|---|---|
| Authentication Mode | Choose how to authenticate with the Lectful API: - Use Stored Credentials - Manual Configuration (provide base URL and API key manually) |
| Credentials Note | Informational note shown when using Manual Configuration mode about credential usage. |
| Base URL Override | Optional base URL to override the stored credential's base URL (without /api/v1). |
| API Key Override | Optional API key to override the stored credential's API key. |
| Course ID | The numeric ID of the course for which to get attached AI resources. |
Output
The output is an array of JSON objects representing the API response from Lectful for the requested course's AI resources. Each object contains details about one or more AI resources attached to the specified course, including metadata such as resource name, type, description, status, and file information.
No binary data output is produced by this operation.
Example output structure (simplified):
{
"id": 123,
"name": "Resource Name",
"type": "pdf",
"description": "Description of the AI resource",
"status": "ready",
"file_path": "/path/to/file.pdf",
"created_at": "2023-01-01T00:00:00Z",
"updated_at": "2023-01-02T00:00:00Z"
}
Dependencies
- Requires access to the Lectful API.
- Requires either stored credentials configured in n8n or manual entry of the Lectful API base URL and API key.
- No additional external dependencies beyond standard HTTP requests.
Troubleshooting
- Missing or invalid credentials: If neither stored credentials nor manual overrides are provided correctly, the node will throw an error indicating that valid credentials are required.
- Base URL or API key missing in manual mode: When using manual configuration, both the base URL override and API key override must be provided; otherwise, an error is thrown.
- Invalid Course ID: Providing an invalid or non-existent course ID may result in API errors or empty results.
- API connectivity issues: Network problems or incorrect base URLs can cause request failures.
- Parsing errors: The node attempts to parse string responses as JSON; if parsing fails, the raw string is returned, which might affect downstream processing.
To resolve these issues:
- Ensure credentials are properly set up or manual parameters are correctly filled.
- Verify the course ID exists in the Lectful system.
- Check network connectivity and API endpoint correctness.
- Review API response messages for specific error details.
Links and References
- Lectful API Documentation (hypothetical link)
- n8n documentation on HTTP Request Node for understanding underlying request mechanics