This pipeline generates a travel itinerary for a specified location and duration, then emails the itinerary to the recipient(s). Using Instill AI’s OpenAI component, it generates the itinerary based on the user's input and sends it via email using a Gmail SMTP server.
-
ask-me (OpenAI Component)
- Generates a travel itinerary based on the
countryOrCity
andnumberOfDays
variables. - Model:
gpt-4o-mini
- Response is a concise 50-word itinerary.
- Generates a travel itinerary based on the
-
send-email (Email Component)
- Sends the generated itinerary as an email to the specified recipient(s).
- Uses Gmail SMTP for sending emails.
- Both
recipients
andbcc
fields are populated with the providedemail
variable, and the subject includes the location specified incountryOrCity
.
Variable | Description | Format | UI Order |
---|---|---|---|
email |
Array of recipient email addresses | array:string | 1 |
numberOfDays |
Number of days for the itinerary | number | 2 |
countryOrCity |
City or country for the itinerary | string | 3 |
Output | Description |
---|---|
result |
The itinerary sent to the recipient(s) |
answer |
The itinerary generated by the AI |
-
Set Up Secrets
- In your Instill project, add secrets:
my-gmail-200
: Your Gmail address.email-password-200
: Your Gmail app password (ensure two-step verification is enabled, and an app password is generated).
- In your Instill project, add secrets:
-
Define Variables
- When running the pipeline, provide values for:
numberOfDays
: Number of days for the trip (e.g.,3
)countryOrCity
: Location for the itinerary (e.g.,Mumbai
)email
: Recipient email(s) as an array (e.g.,["[email protected]"]
)
- When running the pipeline, provide values for:
-
Run the Pipeline
- Visit Instill Pipeline Playground to execute the pipeline with your variables.
Upon execution, the pipeline will:
- Generate an itinerary based on your inputs.
- Email the itinerary to the specified recipients with the subject "My itinerary for [City/Country]".
- Ensure the Gmail account has less secure app access enabled or an app-specific password if using two-step verification.
- For details on the Instill setup, refer to the Instill Documentation.