Skip to content

Add basic research workflow with Tavily integration#1840

Merged
pelikhan merged 4 commits intomainfrom
copilot/add-basic-agentic-workflow
Oct 17, 2025
Merged

Add basic research workflow with Tavily integration#1840
pelikhan merged 4 commits intomainfrom
copilot/add-basic-agentic-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 17, 2025

Overview

This PR adds an ultra basic agentic workflow that enables users to perform quick research and summarization on any topic using Tavily's web search capabilities.

What's New

A new workflow file .github/workflows/research.md that provides:

  • Manual trigger: Workflow can be triggered via workflow_dispatch with a required topic input
  • Tavily integration: Uses the Tavily MCP server for web search and information gathering
  • Automated discussion creation: Research findings are automatically posted as a GitHub discussion in the "research" category with:
    • Summary of key findings and relevant sources
  • Minimal permissions: Main job runs with read-only permissions (contents: read, actions: read)
  • Cost control: 10-minute timeout prevents runaway execution

How to Use

  1. Navigate to the Actions tab in the repository
  2. Select "Basic Research Agent" workflow
  3. Click "Run workflow"
  4. Enter a research topic (e.g., "latest developments in AI code generation")
  5. The agent will search for information and create a discussion with findings

Example Output

When triggered with a topic like "GitHub Actions best practices", the workflow will:

  1. Use Tavily to search for current information on the topic
  2. Analyze search results to identify key information
  3. Create a GitHub discussion containing:
    • Brief overview of the topic
    • Key findings from research
    • Relevant sources and links

Technical Details

The workflow follows the agentic workflow pattern established in the repository:

  • Uses GitHub Copilot CLI as the AI engine
  • Imports the shared Tavily MCP server configuration
  • Implements safe-outputs pattern for secure discussion creation
  • Includes strict mode for enhanced validation

Testing

  • ✅ Workflow compiles successfully with no errors or warnings
  • ✅ Build, formatting, and linting pass
  • ✅ Tavily MCP server correctly configured in compiled YAML
  • ✅ Safe-outputs create-discussion job properly generated
  • ✅ All manual verification checks pass

Note: Two pre-existing test failures in pkg/workflow (TestAIReactionWithCommentEditFunctionality and TestCommandReactionWithCommentEdit) are unrelated to this change and were present before this PR.

Original prompt

Add a ultra basic agentic workflow that takes a workflow dispatch + topic input and does a simple research/summary of the topic using Tavily


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits October 17, 2025 05:50
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add ultra basic agentic workflow with topic input Add basic research workflow with Tavily integration Oct 17, 2025
Copilot AI requested a review from pelikhan October 17, 2025 06:01
Comment thread .github/workflows/research.md Outdated
- shared/mcp/tavily.md

safe-outputs:
create-issue:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot use create-discussion

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to use create-discussion with category "research" in commit efb4a9a+.

…ssue

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan October 17, 2025 09:57
@pelikhan pelikhan marked this pull request as ready for review October 17, 2025 10:04
@pelikhan pelikhan merged commit a169f08 into main Oct 17, 2025
5 checks passed
@pelikhan pelikhan deleted the copilot/add-basic-agentic-workflow branch October 17, 2025 10:04
github-actions Bot added a commit that referenced this pull request Oct 17, 2025
Document two new agentic workflows added in the last 24 hours:

- Basic Research workflow: Performs web research using Tavily MCP
- MCP Inspector workflow: Audits and documents MCP server configurations

Both workflows are now documented in the Research, Status & Planning
samples page with descriptions, value propositions, and trigger info.

Related PRs:
- #1840 - Add basic research workflow with Tavily integration
- #1846 - Add MCP Inspector agentic workflow for shared MCP server auditing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
pelikhan added a commit that referenced this pull request Oct 17, 2025
Document two new agentic workflows added in the last 24 hours:

- Basic Research workflow: Performs web research using Tavily MCP
- MCP Inspector workflow: Audits and documents MCP server configurations

Both workflows are now documented in the Research, Status & Planning
samples page with descriptions, value propositions, and trigger info.

Related PRs:
- #1840 - Add basic research workflow with Tavily integration
- #1846 - Add MCP Inspector agentic workflow for shared MCP server auditing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Daily Documentation Updater <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants