-
Notifications
You must be signed in to change notification settings - Fork 3.5k
feat(microsoft-tools): added planner, onedrive, and sharepoint #840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
70ae4eb
first push
28732ca
feat: finished onedrive tool
ecc2309
added refresh
2ba03e2
added sharepoint with create page
af6df47
finished sharepoint and onedrive
005c04f
planner working
5f0305d
fixed create task tool
6a82b0b
made read task better
e8042f1
cleaned up read task
fb823c1
bun run lint
34a2eea
cleaned up #840
14c3dd9
greptile changes and clean up
f32003d
bun run lint
81264cb
fix #840
4356f07
added docs #840
a819ed6
bun run lint #840
2b6a1ce
removed unnecessary logic #840
ccf46e4
removed page token #840
4ee7252
fixed docs and descriptions, added advanced mode #840
8140a5a
remove unused types, cleaned up a lot, fixed docs
waleedlatif1 fc4f66a
readded file upload and changed docs
95275a0
bun run lint
ccd0e9a
added folder name
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,178 @@ | ||
| --- | ||
| title: Microsoft Planner | ||
| description: Read and create tasks in Microsoft Planner | ||
| --- | ||
|
|
||
| import { BlockInfoCard } from "@/components/ui/block-info-card" | ||
|
|
||
| <BlockInfoCard | ||
| type="microsoft_planner" | ||
| color="#E0E0E0" | ||
| icon={true} | ||
| iconSvg={`<svg className="block-icon" fill='currentColor' viewBox='-1 -1 27 27' xmlns='http://www.w3.org/2000/svg'> | ||
| <defs> | ||
| <linearGradient | ||
| id='paint0_linear_3984_11038' | ||
| x1='6.38724' | ||
| y1='3.74167' | ||
| x2='2.15779' | ||
| y2='12.777' | ||
| gradientUnits='userSpaceOnUse' | ||
| > | ||
| <stop stopColor='#8752E0' /> | ||
| <stop offset='1' stopColor='#541278' /> | ||
| </linearGradient> | ||
| <linearGradient | ||
| id='paint1_linear_3984_11038' | ||
| x1='8.38032' | ||
| y1='11.0696' | ||
| x2='4.94062' | ||
| y2='7.69244' | ||
| gradientUnits='userSpaceOnUse' | ||
| > | ||
| <stop offset='0.12172' stopColor='#3D0D59' /> | ||
| <stop offset='1' stopColor='#7034B0' stopOpacity='0' /> | ||
| </linearGradient> | ||
| <linearGradient | ||
| id='paint2_linear_3984_11038' | ||
| x1='18.3701' | ||
| y1='-3.33385e-05' | ||
| x2='9.85717' | ||
| y2='20.4192' | ||
| gradientUnits='userSpaceOnUse' | ||
| > | ||
| <stop stopColor='#DB45E0' /> | ||
| <stop offset='1' stopColor='#6C0F71' /> | ||
| </linearGradient> | ||
| <linearGradient | ||
| id='paint3_linear_3984_11038' | ||
| x1='18.3701' | ||
| y1='-3.33385e-05' | ||
| x2='9.85717' | ||
| y2='20.4192' | ||
| gradientUnits='userSpaceOnUse' | ||
| > | ||
| <stop stopColor='#DB45E0' /> | ||
| <stop offset='0.677403' stopColor='#A829AE' /> | ||
| <stop offset='1' stopColor='#8F28B3' /> | ||
| </linearGradient> | ||
| <linearGradient | ||
| id='paint4_linear_3984_11038' | ||
| x1='18.0002' | ||
| y1='7.49958' | ||
| x2='14.0004' | ||
| y2='23.9988' | ||
| gradientUnits='userSpaceOnUse' | ||
| > | ||
| <stop stopColor='#3DCBFF' /> | ||
| <stop offset='1' stopColor='#00479E' /> | ||
| </linearGradient> | ||
| <linearGradient | ||
| id='paint5_linear_3984_11038' | ||
| x1='18.2164' | ||
| y1='7.92626' | ||
| x2='10.5237' | ||
| y2='22.9363' | ||
| gradientUnits='userSpaceOnUse' | ||
| > | ||
| <stop stopColor='#3DCBFF' /> | ||
| <stop offset='1' stopColor='#4A40D4' /> | ||
| </linearGradient> | ||
| </defs> | ||
| <path | ||
| d='M8.25809 15.7412C7.22488 16.7744 5.54971 16.7744 4.5165 15.7412L0.774909 11.9996C-0.258303 10.9664 -0.258303 9.29129 0.774908 8.25809L4.5165 4.51655C5.54971 3.48335 7.22488 3.48335 8.25809 4.51655L11.9997 8.2581C13.0329 9.29129 13.0329 10.9664 11.9997 11.9996L8.25809 15.7412Z' | ||
| fill='url(#paint0_linear_3984_11038)' | ||
| /> | ||
| <path | ||
| d='M8.25809 15.7412C7.22488 16.7744 5.54971 16.7744 4.5165 15.7412L0.774909 11.9996C-0.258303 10.9664 -0.258303 9.29129 0.774908 8.25809L4.5165 4.51655C5.54971 3.48335 7.22488 3.48335 8.25809 4.51655L11.9997 8.2581C13.0329 9.29129 13.0329 10.9664 11.9997 11.9996L8.25809 15.7412Z' | ||
| fill='url(#paint1_linear_3984_11038)' | ||
| /> | ||
| <path | ||
| d='M0.774857 11.9999C1.80809 13.0331 3.48331 13.0331 4.51655 11.9999L15.7417 0.774926C16.7749 -0.258304 18.4501 -0.258309 19.4834 0.774914L23.225 4.51655C24.2583 5.54977 24.2583 7.22496 23.225 8.25819L11.9999 19.4832C10.9667 20.5164 9.29146 20.5164 8.25822 19.4832L0.774857 11.9999Z' | ||
| fill='url(#paint2_linear_3984_11038)' | ||
| /> | ||
| <path | ||
| d='M0.774857 11.9999C1.80809 13.0331 3.48331 13.0331 4.51655 11.9999L15.7417 0.774926C16.7749 -0.258304 18.4501 -0.258309 19.4834 0.774914L23.225 4.51655C24.2583 5.54977 24.2583 7.22496 23.225 8.25819L11.9999 19.4832C10.9667 20.5164 9.29146 20.5164 8.25822 19.4832L0.774857 11.9999Z' | ||
| fill='url(#paint3_linear_3984_11038)' | ||
| /> | ||
| <path | ||
| d='M4.51642 15.7413C5.54966 16.7746 7.22487 16.7746 8.25812 15.7413L15.7415 8.25803C16.7748 7.2248 18.45 7.2248 19.4832 8.25803L23.2249 11.9997C24.2582 13.0329 24.2582 14.7081 23.2249 15.7413L15.7415 23.2246C14.7083 24.2579 13.033 24.2579 11.9998 23.2246L4.51642 15.7413Z' | ||
| fill='url(#paint4_linear_3984_11038)' | ||
| /> | ||
| <path | ||
| d='M4.51642 15.7413C5.54966 16.7746 7.22487 16.7746 8.25812 15.7413L15.7415 8.25803C16.7748 7.2248 18.45 7.2248 19.4832 8.25803L23.2249 11.9997C24.2582 13.0329 24.2582 14.7081 23.2249 15.7413L15.7415 23.2246C14.7083 24.2579 13.033 24.2579 11.9998 23.2246L4.51642 15.7413Z' | ||
| fill='url(#paint5_linear_3984_11038)' | ||
| /> | ||
| </svg>`} | ||
| /> | ||
|
|
||
| {/* MANUAL-CONTENT-START:intro */} | ||
| [Microsoft Planner](https://www.microsoft.com/en-us/microsoft-365/planner) is a task management tool that helps teams organize work visually using boards, tasks, and buckets. Integrated with Microsoft 365, it offers a simple, intuitive way to manage team projects, assign responsibilities, and track progress. | ||
|
|
||
| With Microsoft Planner, you can: | ||
|
|
||
| - **Create and manage tasks**: Add new tasks with due dates, priorities, and assigned users | ||
| - **Organize with buckets**: Group tasks by phase, status, or category to reflect your team’s workflow | ||
| - **Visualize project status**: Use boards, charts, and filters to monitor workload and track progress | ||
| - **Stay integrated with Microsoft 365**: Seamlessly connect tasks with Teams, Outlook, and other Microsoft tools | ||
|
|
||
| In Sim, the Microsoft Planner integration allows your agents to programmatically create, read, and manage tasks as part of their workflows. Agents can generate new tasks based on incoming requests, retrieve task details to drive decisions, and track status across projects — all without human intervention. Whether you're building workflows for client onboarding, internal project tracking, or follow-up task generation, integrating Microsoft Planner with Sim gives your agents a structured way to coordinate work, automate task creation, and keep teams aligned. | ||
| {/* MANUAL-CONTENT-END */} | ||
|
|
||
|
|
||
| ## Usage Instructions | ||
|
|
||
| Integrate Microsoft Planner functionality to manage tasks. Read all user tasks, tasks from specific plans, individual tasks, or create new tasks with various properties like title, description, due date, and assignees using OAuth authentication. | ||
|
|
||
|
|
||
|
|
||
| ## Tools | ||
|
|
||
| ### `microsoft_planner_read_task` | ||
|
|
||
| Read tasks from Microsoft Planner - get all user tasks or all tasks from a specific plan | ||
|
|
||
| #### Input | ||
|
|
||
| | Parameter | Type | Required | Description | | ||
| | --------- | ---- | -------- | ----------- | | ||
| | `accessToken` | string | Yes | The access token for the Microsoft Planner API | | ||
| | `planId` | string | No | The ID of the plan to get tasks from \(if not provided, gets all user tasks\) | | ||
| | `taskId` | string | No | The ID of the task to get | | ||
|
|
||
| #### Output | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --------- | ---- | ----------- | | ||
| | `task` | json | The Microsoft Planner task object, including details such as id, title, description, status, due date, and assignees. | | ||
| | `metadata` | json | Additional metadata about the operation, such as timestamps, request status, or other relevant information. | | ||
|
|
||
| ### `microsoft_planner_create_task` | ||
|
|
||
| Create a new task in Microsoft Planner | ||
|
|
||
| #### Input | ||
|
|
||
| | Parameter | Type | Required | Description | | ||
| | --------- | ---- | -------- | ----------- | | ||
| | `accessToken` | string | Yes | The access token for the Microsoft Planner API | | ||
| | `planId` | string | Yes | The ID of the plan where the task will be created | | ||
| | `title` | string | Yes | The title of the task | | ||
| | `description` | string | No | The description of the task | | ||
| | `dueDateTime` | string | No | The due date and time for the task \(ISO 8601 format\) | | ||
| | `assigneeUserId` | string | No | The user ID to assign the task to | | ||
| | `bucketId` | string | No | The bucket ID to place the task in | | ||
|
|
||
| #### Output | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --------- | ---- | ----------- | | ||
| | `task` | json | The Microsoft Planner task object, including details such as id, title, description, status, due date, and assignees. | | ||
| | `metadata` | json | Additional metadata about the operation, such as timestamps, request status, or other relevant information. | | ||
|
|
||
|
|
||
|
|
||
| ## Notes | ||
|
|
||
| - Category: `tools` | ||
| - Type: `microsoft_planner` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,127 @@ | ||
| --- | ||
| title: OneDrive | ||
| description: Create, upload, and list files | ||
| --- | ||
|
|
||
| import { BlockInfoCard } from "@/components/ui/block-info-card" | ||
|
|
||
| <BlockInfoCard | ||
| type="onedrive" | ||
| color="#E0E0E0" | ||
| icon={true} | ||
| iconSvg={`<svg className="block-icon" fill='currentColor' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'> | ||
| <g> | ||
| <path | ||
| d='M12.20245,11.19292l.00031-.0011,6.71765,4.02379,4.00293-1.68451.00018.00068A6.4768,6.4768,0,0,1,25.5,13c.14764,0,.29358.0067.43878.01639a10.00075,10.00075,0,0,0-18.041-3.01381C7.932,10.00215,7.9657,10,8,10A7.96073,7.96073,0,0,1,12.20245,11.19292Z' | ||
| fill='#0364b8' | ||
| /> | ||
| <path | ||
| d='M12.20276,11.19182l-.00031.0011A7.96073,7.96073,0,0,0,8,10c-.0343,0-.06805.00215-.10223.00258A7.99676,7.99676,0,0,0,1.43732,22.57277l5.924-2.49292,2.63342-1.10819,5.86353-2.46746,3.06213-1.28859Z' | ||
| fill='#0078d4' | ||
| /> | ||
| <path | ||
| d='M25.93878,13.01639C25.79358,13.0067,25.64764,13,25.5,13a6.4768,6.4768,0,0,0-2.57648.53178l-.00018-.00068-4.00293,1.68451,1.16077.69528L23.88611,18.19l1.66009.99438,5.67633,3.40007a6.5002,6.5002,0,0,0-5.28375-9.56805Z' | ||
| fill='#1490df' | ||
| /> | ||
| <path | ||
| d='M25.5462,19.18437,23.88611,18.19l-3.80493-2.2791-1.16077-.69528L15.85828,16.5042,9.99475,18.97166,7.36133,20.07985l-5.924,2.49292A7.98889,7.98889,0,0,0,8,26H25.5a6.49837,6.49837,0,0,0,5.72253-3.41556Z' | ||
| fill='#28a8ea' | ||
| /> | ||
| </g> | ||
| </svg>`} | ||
| /> | ||
|
|
||
| {/* MANUAL-CONTENT-START:intro */} | ||
| [OneDrive](https://onedrive.live.com) is Microsoft’s cloud storage and file synchronization service that allows users to securely store, access, and share files across devices. Integrated deeply into the Microsoft 365 ecosystem, OneDrive supports seamless collaboration, version control, and real-time access to content across teams and organizations. | ||
|
|
||
| Learn how to integrate the OneDrive tool in Sim to automatically pull, manage, and organize your cloud files within your workflows. This tutorial walks you through connecting OneDrive, setting up file access, and using stored content to power automation. Ideal for syncing essential documents and media with your agents in real time. | ||
|
|
||
| With OneDrive, you can: | ||
|
|
||
| - **Store files securely in the cloud**: Upload and access documents, images, and other files from any device | ||
| - **Organize your content**: Create structured folders and manage file versions with ease | ||
| - **Collaborate in real time**: Share files, edit them simultaneously with others, and track changes | ||
| - **Access across devices**: Use OneDrive from desktop, mobile, and web platforms | ||
| - **Integrate with Microsoft 365**: Work seamlessly with Word, Excel, PowerPoint, and Teams | ||
| - **Control permissions**: Share files and folders with custom access settings and expiration controls | ||
|
|
||
| In Sim, the OneDrive integration enables your agents to directly interact with your cloud storage. Agents can upload new files to specific folders, retrieve and read existing files, and list folder contents to dynamically organize and access information. This integration allows your agents to incorporate file operations into intelligent workflows — automating document intake, content analysis, and structured storage management. By connecting Sim with OneDrive, you empower your agents to manage and use cloud documents programmatically, eliminating manual steps and enhancing automation with secure, real-time file access. | ||
| {/* MANUAL-CONTENT-END */} | ||
|
|
||
|
|
||
| ## Usage Instructions | ||
waleedlatif1 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| Integrate OneDrive functionality to manage files and folders. Upload new files, create new folders, and list contents of folders using OAuth authentication. Supports file operations with custom MIME types and folder organization. | ||
|
|
||
|
|
||
|
|
||
| ## Tools | ||
|
|
||
| ### `onedrive_upload` | ||
|
|
||
| Upload a file to OneDrive | ||
|
|
||
| #### Input | ||
|
|
||
| | Parameter | Type | Required | Description | | ||
| | --------- | ---- | -------- | ----------- | | ||
| | `accessToken` | string | Yes | The access token for the OneDrive API | | ||
| | `fileName` | string | Yes | The name of the file to upload | | ||
| | `content` | string | Yes | The content of the file to upload | | ||
| | `folderSelector` | string | No | Select the folder to upload the file to | | ||
| | `folderId` | string | No | The ID of the folder to upload the file to \(internal use\) | | ||
|
|
||
| #### Output | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --------- | ---- | ----------- | | ||
| | `file` | json | The OneDrive file object, including details such as id, name, size, and more. | | ||
| | `files` | json | An array of OneDrive file objects, each containing details such as id, name, size, and more. | | ||
|
|
||
| ### `onedrive_create_folder` | ||
|
|
||
| Create a new folder in OneDrive | ||
|
|
||
| #### Input | ||
|
|
||
| | Parameter | Type | Required | Description | | ||
| | --------- | ---- | -------- | ----------- | | ||
| | `accessToken` | string | Yes | The access token for the OneDrive API | | ||
| | `folderName` | string | Yes | Name of the folder to create | | ||
| | `folderSelector` | string | No | Select the parent folder to create the folder in | | ||
| | `folderId` | string | No | ID of the parent folder \(internal use\) | | ||
|
|
||
| #### Output | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --------- | ---- | ----------- | | ||
| | `file` | json | The OneDrive file object, including details such as id, name, size, and more. | | ||
| | `files` | json | An array of OneDrive file objects, each containing details such as id, name, size, and more. | | ||
|
|
||
| ### `onedrive_list` | ||
|
|
||
| List files and folders in OneDrive | ||
|
|
||
| #### Input | ||
|
|
||
| | Parameter | Type | Required | Description | | ||
| | --------- | ---- | -------- | ----------- | | ||
| | `accessToken` | string | Yes | The access token for the OneDrive API | | ||
| | `folderSelector` | string | No | Select the folder to list files from | | ||
| | `folderId` | string | No | The ID of the folder to list files from \(internal use\) | | ||
| | `query` | string | No | A query to filter the files | | ||
| | `pageSize` | number | No | The number of files to return | | ||
|
|
||
| #### Output | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --------- | ---- | ----------- | | ||
| | `file` | json | The OneDrive file object, including details such as id, name, size, and more. | | ||
| | `files` | json | An array of OneDrive file objects, each containing details such as id, name, size, and more. | | ||
|
|
||
|
|
||
|
|
||
| ## Notes | ||
|
|
||
| - Category: `tools` | ||
| - Type: `onedrive` | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.