dify icon indicating copy to clipboard operation
dify copied to clipboard

FEAT: Add Brave Search and Trello(12 Tools) Included

Open Yash-1511 opened this issue 1 year ago • 4 comments

Description

Added Brave Search Tool. Add Trello tools like create trello board, create lists, create cards, update cards, delete cards and many more actions in trello. currently added around 12 tools.

Type of Change

Please delete options that are not relevant.

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change requires a documentation update, included: Dify Document
  • [ ] Improvement,including but not limited to code refactoring, performance optimization, and UI/UX improvement
  • [ ] Dependency upgrade

How Has This Been Tested?

Manual testing with some general queries for brave search. creating , deleting and updating with boards,cards and lists with trello tools.

  • [ ] TODO

Suggested Checklist:

  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] My changes generate no new warnings
  • [x] I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

Yash-1511 avatar Mar 29 '24 15:03 Yash-1511

Amazing works! I haven't seen such a provider has so many tools, but while I'm trying to test those, I got some troubles, firstly, how can I get my keys? by following the URL provided in the yaml, I cannot find a guide of how to get it, and after generate a key, I'm not sure whether it's correct or not, it's empty in validate_credentials, maybe we should try use get_list_on_board to test it instead.

Yeuoly avatar Mar 31 '24 09:03 Yeuoly

Amazing works! I haven't seen such a provider has so many tools, but while I'm trying to test those, I got some troubles, firstly, how can I get my keys? by following the URL provided in the yaml, I cannot find a guide of how to get it, and after generate a key, I'm not sure whether it's correct or not, it's empty in validate_credentials, maybe we should try use get_list_on_board to test it instead.

I believe I forgot to include the step for testing keys and tokens in the instructions. To generate a key, please refer to the Trello Rest API Key Documentation at: Trello Rest API Key Documentation

Yash-1511 avatar Mar 31 '24 11:03 Yash-1511

Here i have updated help url for getting api keys and token for trello. and calling one tool for api keys validation.

Yash-1511 avatar Mar 31 '24 15:03 Yash-1511

Please fix the errors in ci builds.

crazywoola avatar Apr 01 '24 01:04 crazywoola

Sorry for that but could u pls rebase to main or merge main branch into your PR to fix the CI error, because there is a requirement update which results an error

Yeuoly avatar Apr 01 '24 04:04 Yeuoly

Sorry for that but could u pls rebase to main or merge main branch into your PR to fix the CI error, because there is a requirement update which results an error

Done

Yash-1511 avatar Apr 01 '24 05:04 Yash-1511

You can try with this prompt:

Project Management Copilot Overview

Objective: Assist users with project management on Trello, from setup to task tracking and cleanup.

Skills

  1. Board Creation: Start new projects on fresh boards.
  2. List Organization: Categorize tasks by phases ('To Do', 'Doing', 'Done').
  3. Task Management: Add, update, and delete task cards with details.
  4. Progress Tracking: Move tasks through phases as work progresses.

Workflow

Setup:

  1. Create Board: Initiate a new project board.
    • <Use tool: 'CreateBoardTool'>
  2. Add Lists: Structure task phases on the board.
    • <Use tool: 'CreateListOnBoardTool'>
  3. Allocate Tasks: Break down the project into individual tasks.
    • <Use tool:'CreateNewCardOnBoardTool'>

Task Management:

  1. Update Tasks: Modify task details or move them between lists.
    • <Use tool: 'UpdateCardByIdTool'>
  2. Complete Tasks: Mark tasks as done.
    • <Use tool: 'UpdateCardByIdTool'>
  3. Cleanup: Remove irrelevant or completed tasks.
    • <Use tool: 'DeleteCardByIdTool'>

Guidelines

  • Maximize Trello features for clear, organized project visualization.
  • Maintain user's language clarity in responses.
  • Focus solely on Trello-based project management tasks.
  • Ensure IDs are correctly obtained before performing actions requiring them. use fetch_all_board to fetch board ids , same as for lists and cards.

======================

for this bot you need to include this necessary tools: fetch all bords, get_lists_from_board,get_board_cards,update_card_by_id, create_new_card_on_board,create_list_on_board

Yash-1511 avatar Apr 01 '24 06:04 Yash-1511