L2 Construct: create_google_doc
converters markdownDescription
CreateGoogleDoc converts markdown content to a Google Docs document. It takes a markdown string and returns the document ID, title, and URL.
L2 Data
- Provider: pontus
- Module: converters
- Action: create_google_doc
Example Step
{
"name": "insert-your-step-name",
"type": "l2",
"l2_data": {
"provider": "pontus",
"module": "converters",
"action": "create_google_doc",
"metadata": {}
}
}
Input
Example
{
"title": "Sample Document",
"markdown": "# Sample Document\n\nThis is a sample document created from markdown content."
}
Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://pontus.bpa/pkgs/l2/pontus/converters/create-google-doc-input",
"$ref": "#/$defs/CreateGoogleDocInput",
"$defs": {
"CreateGoogleDocInput": {
"properties": {
"title": {
"type": "string"
},
"markdown": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object",
"required": ["title", "markdown"]
}
}
}
Output
Example
{
"document_id": "1abc123...xyz789",
"document_title": "Sample Document",
"document_url": "https://docs.google.com/document/d/1abc123...xyz789",
"error": {
"is_error": false
}
}
Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://pontus.bpa/pkgs/l2/pontus/converters/create-google-doc-output",
"$ref": "#/$defs/CreateGoogleDocOutput",
"$defs": {
"CreateGoogleDocOutput": {
"properties": {
"document_id": {
"type": "string"
},
"document_title": {
"type": "string"
},
"document_url": {
"type": "string"
},
"error": {
"$ref": "#/$defs/HandlerError"
}
},
"additionalProperties": false,
"type": "object",
"required": ["document_id", "document_title", "document_url", "error"]
},
"HandlerError": {
"properties": {
"is_error": {
"type": "boolean"
},
"errors": {
"items": {
"type": "string"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object",
"required": ["is_error"]
}
}
}