WeCom Spreadsheet · emploidai Marketplace
emploidai Marketplace
Add-onsAppletsPlugins
Search tools, teams, and capabilitiesPublish
MarketplacePluginsWeCom Spreadsheet
Plugin
Limited listing

WeCom Spreadsheet

by vip2193 · v0.0.1

Manage WeCom online spreadsheet - create, add, get, update rows

532 installsUpdated Nov 21, 2025
Publisher information is incomplete

This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.

Capabilities

Tools

Available inside your emploidai workspace after installation.

Data sources

Available inside your emploidai workspace after installation.

Category

tool

Version

0.0.1vip2193

Requirements

Maximum memory 256MB

Pricing

Not disclosed by publisher

Security & access

Review before installing

CompatibleRequires emploidai 1.6.0+

Permissions

  • Uses tool capability
  • Requires encrypted tool credentials

Dependencies

No additional dependencies

Resources

Privacy policy
emploidai Marketplace

Discover capabilities. Review access. Install inside your workspace.

DocumentationSecuritySupportPrivacyTerms

WeCondifyPlugin

Author: neo
Version: 0.0.1
Type: tool

Description

WeChat Work Smart Sheet plugin for Dify, supporting create, add, and update operations.

Features

  • ✅ Create Sheet (create_sheet): Create new smart sheets and return docid
  • ✅ Query Sheets (get_sheets): Query all sub-sheet information in smart sheets
  • ✅ Add Records (add_rows): Add one or multiple records to smart sheets
  • ✅ Get Sheet Info (get_rows): Get sheet properties (worksheet name, row count, column count)
  • ✅ Update Records (update_rows): Update specified records in smart sheets
  • 🔒 Secure Credential Management: Corporate ID and Secret encrypted storage in Provider
  • 🔄 Automatic Token Management: Auto-acquire and refresh access_token

Quick Start

1. Configure in WeChat Work Admin Console

Create Custom Application:

  1. Login to WeChat Work Admin Console: https://work.weixin.qq.com/
  2. Go to "Application Management" → "Applications" → "Create Application"
  3. Record AgentId and Secret

Enable API Permissions:

  1. Enter application details page
  2. Configure "Trusted IP" if needed
  3. Go to "Collaboration" → "Documents" → "API"
  4. Enable "Documents/Smart Sheets" related interface permissions

Get Corporate ID:

  1. Go to "My Enterprise"
  2. Copy Corporate ID (CorpID)

2. Install Plugin in Dify

After installing the plugin, configure Provider credentials:

  • Corporate ID: Get from "My Enterprise"
  • Application Secret: Get from "Application Management"

3. Get Sheet ID and Sub-sheet ID

Open WeChat Work Smart Sheet:

  • docid: Get from URL https://doc.weixin.qq.com/smartsheet/xxxxx
  • sheet_id: Sub-sheet ID, can be obtained via API or viewed in the sheet

Tool Documentation

0. Create Sheet (create_sheet)

Create a new smart sheet and return docid for subsequent operations.

Parameters:

  • sheet_name: Sheet name
  • admin_users: Admin user IDs, comma-separated (optional)

Example:

{
  "sheet_name": "Sales Data Sheet"
}

1. Add Records (add_rows)

Add new records to smart sheets.

Parameters:

  • sheet_id: Sheet document ID (docid)
  • sheet_name: Sub-sheet ID
  • rows_data: JSON array format, using field names as keys

Example:

{
  "sheet_id": "your_docid",
  "sheet_name": "your_sheet_id",
  "rows_data": "[{\"Name\": \"John\", \"Age\": \"25\", \"Position\": \"Engineer\"}]"
}

1.5. Query Sheets (get_sheets)

Query all sub-sheet information in smart sheets.

Parameters:

  • sheet_id: Sheet document ID (docid)
  • sub_sheet_id: Specify sub-sheet ID (optional)
  • need_all_type_sheet: Include dashboards and description pages (optional, default false)

Example:

{
  "sheet_id": "your_docid",
  "need_all_type_sheet": true
}

Response:

{
  "success": true,
  "sheet_count": 2,
  "sheet_list": [
    {
      "sheet_id": "123Abc",
      "title": "Worksheet1",
      "is_visible": true,
      "type": "smartsheet"
    }
  ]
}

2. Get Sheet Info (get_rows)

Get smart sheet property information.

Parameters:

  • sheet_id: Sheet document ID (docid)

Example:

{
  "sheet_id": "your_docid"
}

3. Update Records (update_rows)

Update specified records in smart sheets.

Parameters:

  • sheet_id: Sheet document ID (docid)
  • sheet_name: Sub-sheet ID
  • record_id: Record ID to update
  • row_data: JSON object format, using field names as keys

Example:

{
  "sheet_id": "your_docid",
  "sheet_name": "your_sheet_id",
  "record_id": "record_id_from_add",
  "row_data": "{\"Name\": \"Mike\", \"Age\": \"35\"}"
}

Security Features

✓ Sensitive credentials (Corporate ID, Secret) encrypted storage in Provider
✓ No sensitive information exposed in workflows
✓ Automatic access_token management, no manual refresh needed
✓ Complies with enterprise security best practices

Local Testing

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python test_local.py

Permission Configuration Checklist

  • Created WeChat Work custom application
  • Obtained Corporate ID and Application Secret
  • Enabled "Documents/Smart Sheets" API permissions in application
  • Configured trusted IP if needed
  • Configured Provider credentials in Dify

API Reference

  • WeChat Work Smart Sheet API Documentation
  • Get access_token