Skip to content
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

feat: implement auto-pay pipe with ScreenPipe and Wise API integration #9

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Auto-Pay Pipe Implementation

This PR implements a comprehensive auto-pay pipe that integrates ScreenPipe's OCR capabilities with the Wise API for automated payment processing.

Features

ScreenPipe Integration

  • Implemented OCR data scanning from screen captures
  • Set up 24-hour analysis window (configurable via pipe settings)
  • Added TypeScript interfaces for ScreenPipe data structures

Payment Information Extraction

  • Integrated Vercel's generateObject for structured data extraction
  • Implemented AI-powered parsing of payment details from OCR text
  • Added robust error handling and type safety

Wise API Integration

  • Implemented token-based authentication for Wise API
  • Added transfer creation and funding endpoints
  • Created TypeScript interfaces for Wise API requests/responses

User Interface

  • Built responsive Next.js UI with shadcn/ui components
  • Implemented loading states with Radix UI icons
  • Added toast notifications for error handling
  • Created intuitive workflow for payment confirmation

Testing

  • Tested ScreenPipe data extraction
  • Verified Wise API integration using sandbox environment
  • Validated UI components and loading states

Technical Details

  • Uses Next.js for the frontend and API routes
  • Implements TypeScript throughout for type safety
  • Utilizes shadcn/ui components for consistent UI
  • Integrates with local ScreenPipe service
  • Uses Wise sandbox API for transfer operations

Screenshots

[To be added after deployment]

Link to Devin run: https://app.devin.ai/sessions/20b01a997d81458d82088bfb5caa7566

Next Steps

  • Add comprehensive error handling for edge cases
  • Implement retry mechanisms for failed API calls
  • Add unit and integration tests
  • Add documentation for pipe configuration

devin-ai-integration bot and others added 7 commits December 27, 2024 16:15
- Add pipe.json with Wise API configuration
- Create API endpoints for payment processing
- Set up UI components for payment confirmation
- Configure Next.js and TypeScript
- Add necessary dependencies

Co-Authored-By: ben <[email protected]>
- Add proper type definitions for ScreenPipe API responses
- Update analyze endpoint to use ScreenPipe search API
- Enhance process endpoint with better context handling
- Add type safety and improved error handling

Co-Authored-By: ben <[email protected]>
- Update createTransfer endpoint with quote and recipient account creation
- Update fundTransfer endpoint with balance payment support
- Add proper error handling and type safety
- Use environment variables for Wise API token and profile ID
- Switch to sandbox API URLs for testing

Co-Authored-By: ben <[email protected]>
Copy link

vercel bot commented Dec 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hypr-v0-landing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 27, 2024 4:52pm

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

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.

0 participants