Send Flowers and Thank You Card to Google Contact

Saves ~15 min5 credits

Given a person's name, search Google Contacts to retrieve their phone number and address, then order red roses with a thank-you note using the flower delivery tool.

firef1ie
by firef1ie
Step 1 of 5
Tool1

Search Google Contact

Search Google Contacts for the provided name. Return full contact details including phone numbers and postal addresses.

Search Google Contact
Prompt2

Extract Phone and Address

Goal: Extract the primary phone number and full postal address from the Google Contacts search result. | Inputs: Raw contact object from Google Contacts search. | Outputs: Structured object with fields: full_name, phone_number, street, city, state, postal_code, country. | Constraints: If multiple contacts are returned, select the best name match. If multiple phone numbers or addresses exist, choose the primary/home entry. | Success criteria: Valid structured recipient object ready for flower order tool.

Tool3

Search Red Rose Products

Search for popular red rose arrangements suitable for business thank-you gifts.

Search Red Rose Products

Workflow preview

What the agent will follow (tools, prompts, and workflow steps).

1. Call tool: Google Contacts (Search Google Contact).

Instructions:
Search Google Contacts for the provided name. Return full contact details including phone numbers and postal addresses.

Parameters:
{"action":"search_contacts","query":"{{input.name}}"}

2. Apply the following prompt: Goal:
Extract the primary phone number and full postal address from the Google Contacts search result.

Inputs:
Raw contact object from Google Contacts search.

Outputs:
Structured object with fields: full_name, phone_number, street, city, state, postal_code, country.

Constraints:
If multiple contacts are returned, select the best name match. If multiple phone numbers or addresses exist, choose the primary/home entry.

Success criteria:
Valid structured recipient object ready for flower order tool.

3. Call tool: Flower, Fruit Basket, Balloon Delivery (Search Red Rose Products).

Instructions:
Search for popular red rose arrangements suitable for business thank-you gifts.

Parameters:
{"action":"search_products","category":"roses","limit":5,"sort":"popularity"}

4. Apply the following prompt: Goal:
Select the most appropriate red rose arrangement for a professional thank-you gift.

Inputs:
List of rose products from search.

Outputs:
Selected product_code for ordering.

Constraints:
Choose a red rose bouquet with strong reviews and moderate price suitable for business context.

Success criteria:
Single valid product_code selected for ordering.

5. Call tool: Flower, Fruit Basket, Balloon Delivery (Place Flower Order).

Instructions:
Place the flower order using the selected product_code and extracted recipient details. Ensure the card message reads exactly: Thank you for your business.

Parameters:
{"action":"place_order","recipient":{"name":"{{extract-contact-details.full_name}}","address1":"{{extract-contact-details.street}}","city":"{{extract-contact-details.city}}","state":"{{extract-contact-details.state}}","zip":"{{extract-contact-details.postal_code}}","phone":"{{extract-contact-details.phone_number}}"},"card_message":"Thank you for your business"}

Agent Reviews