Create New Document
Creates a new Google Docs document with optional title and content.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.CREATE_NEW_DOC])
Insert Text
Inserts text at a specified location in an existing Google Docs document.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.INSERT_TEXT])
Delete Text
Deletes specified text or range from an existing Google Docs document.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DELETE_TEXT])
Format Text
Applies formatting (bold, italic, underline, etc.) to selected text in a document.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.FORMAT_TEXT])
Share Document
Shares the document with specified users or groups, setting appropriate permissions.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.SHARE_DOCUMENT])
Create Copy
Creates a copy of an existing Google Docs document.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.CREATE_COPY])
Export Document
Exports the document to a specified format (PDF, DOCX, etc.).
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.EXPORT_DOCUMENT])
Insert Image
Inserts an image into the document at a specified location.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.INSERT_IMAGE])
Create Table
Creates a table in the document with specified dimensions.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.CREATE_TABLE])
Insert Page Break
Inserts a page break at the specified location in the document.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.INSERT_PAGE_BREAK])
Apply Template
Applies a pre-defined template to the document.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.APPLY_TEMPLATE])
Document Created
Triggered when a new Google Docs document is created.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DOCUMENT_CREATED])
Document Edited
Triggered when changes are made to a Google Docs document.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DOCUMENT_EDITED])
Document Shared
Triggered when the document is shared with new users or groups.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DOCUMENT_SHARED])
Collaborator Joined
Triggered when a new collaborator joins the document editing session.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.COLLABORATOR_JOINED])
Document Title Changed
Triggered when the title of the document is changed.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.TITLE_CHANGED])
Document Exported
Triggered when the document is exported to another format.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DOCUMENT_EXPORTED])
Suggestion Added
Triggered when a new suggestion is added to the document.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.SUGGESTION_ADDED])
Suggestion Accepted
Triggered when a suggestion in the document is accepted.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.SUGGESTION_ACCEPTED])
Suggestion Rejected
Triggered when a suggestion in the document is rejected.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.SUGGESTION_REJECTED])
Document Moved
Triggered when the document is moved to a different folder.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DOCUMENT_MOVED])
Document Renamed
Triggered when the document is renamed.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DOCUMENT_RENAMED])
Version Created
Triggered when a new version of the document is created.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.VERSION_CREATED])
Document Printed
Triggered when the document is printed or sent to a printer.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DOCUMENT_PRINTED])