Skip to content

Comments

Add flight-information-email ability with Amadeus + Composio integration#116

Open
fiction17 wants to merge 5 commits intoopenhome-dev:devfrom
fiction17:add-flight-information-email-ability
Open

Add flight-information-email ability with Amadeus + Composio integration#116
fiction17 wants to merge 5 commits intoopenhome-dev:devfrom
fiction17:add-flight-information-email-ability

Conversation

@fiction17
Copy link
Contributor

This PR adds a new OpenHome capability: Flight Information Email.

What it does

  • Allows users to search flights using natural language (e.g. "flight information from Dhaka to Singapore on March 2")
  • Uses Amadeus Flight Offers API (test environment)
  • Saves last search result
  • Sends clean, formatted email with top flight options + live booking links (Google Flights & Kayak)
  • Sends even when no flights found
  • Very reliable send triggers: "yes send", "please send", "send email", "send those details in my email", short "yes", etc.

Folder structure

  • add-flight-information-email/
    • main.py → full capability logic
    • README.md → detailed setup & usage guide

Setup notes

  • Amadeus test credentials are hardcoded (replace with your own)
  • Composio Gmail credentials are hardcoded (replace with your own connected account ID / user ID / API key)

How to test

  1. Speak: "flight information from Dhaka to Bangkok"
  2. After results → say: "yes send" / "please send" / "send email"
  3. Check inbox/spam for the email

Closes #

Let me know if any changes are needed before merge!

@fiction17 fiction17 requested a review from a team as a code owner February 22, 2026 22:50
@github-actions github-actions bot added the first-contribution First-time contributor label Feb 22, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 22, 2026

🔀 Branch Merge Check

PR direction: add-flight-information-email-abilitydev

Passedadd-flight-information-email-abilitydev is a valid merge direction

@github-actions github-actions bot added the community-ability Community-contributed ability label Feb 22, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 22, 2026

❌ Ability Validation Failed

📋 Validating: community/add-flight-information-email
  ❌ raw open() is not allowed — use capability_worker file helpers (read_file, write_file, etc.) instead
  ❌ Missing register capability tag — add the following line to your class:
    #{{register capability}}
See: https://docs.openhome.com/how_to_build_an_ability
  ❌ 2 error(s) found

📚 How to fix

@github-actions
Copy link
Contributor

github-actions bot commented Feb 22, 2026

🔍 Lint Results

__init__.py — Empty as expected

Files linted: community/add-flight-information-email/main.py

✅ Flake8 — Passed

✅ All checks passed!

@codermohsin
Copy link
Contributor

Hey ,
your ability is under review.
Can you share the demo video of your ability functionality and setup.

@fiction17
Copy link
Contributor Author

I made the video and forgot to add in the readme. Check the readme now. Thanks.

@codermohsin
Copy link
Contributor

Your ability is under review.

Our team will review it and provide feedback once finalized.

Thank you for your submission

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-ability Community-contributed ability first-contribution First-time contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants