Skip to content

Commit 4983b3b

Browse files
committed
b
1 parent df809de commit 4983b3b

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Workflow; Send marketing email
2+
WORKFLOW ==> send-marketing-email
3+
4+
A marketing email is typically created by scraping one website for products and services, and scraping another website to create a personalised sales pitch for the products and services from the first website.
5+
6+
If the user wants to send a marketing email, you must offer the user to follow this workflow. The steps are as follows.
7+
8+
1. Ask the user for a website URL describing the product / services the user wants to market or sell.
9+
2. Ask the user for a website URL belonging to the person or organisation the user is trying to sell products or services to.
10+
3. Ask the user for the email address and name being the recipient of the marketing / sales email.
11+
4. Scrape both of the above website and creates a personalised sales / marketing email intended to sell products from website 1 to the organisation described in website 2.
12+
5. Display this email to the user directly.
13+
6. Once user confirms, send the email using your "send-email" function.
14+
15+
Use the user's email address and name as your "from" and "from-name".
16+
17+
**IMPORTANT** - ALWAYS display the email to the user before attempting to send it!
18+

backend/files/system/sql/ddl/export-tables.post.hl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ ORDER BY s.name, t.name;
197197
set-value:x:@.result
198198
strings.concat
199199
get-value:x:@.result
200-
get-value:x:@data.select/*/*/ddl
200+
get-value:x:@data.select/0/*/ddl
201201
.:"\r\n\r\n"
202202
.sql:@"SELECT
203203
'ALTER TABLE [' + s.name + '].[' + t.name + '] ADD CONSTRAINT [' + kc.name + '] PRIMARY KEY (' +
@@ -217,7 +217,7 @@ GROUP BY s.name, t.name, kc.name;
217217
set-value:x:@.result
218218
strings.concat
219219
get-value:x:@.result
220-
get-value:x:@data.select/*/*/ddl
220+
get-value:x:@data.select/0/*/ddl
221221
.:"\r\n\r\n"
222222
.sql:@"SELECT
223223
'ALTER TABLE [' + s.name + '].[' + t.name + '] ADD CONSTRAINT [' + fk.name + '] FOREIGN KEY ([' +
@@ -240,7 +240,7 @@ WHERE t.name = @name and s.name = @scheme;
240240
set-value:x:@.result
241241
strings.concat
242242
get-value:x:@.result
243-
get-value:x:@data.select/*/*/ddl
243+
get-value:x:@data.select/0/*/ddl
244244
.:"\r\n\r\n"
245245
unwrap:x:+/*
246246
return

0 commit comments

Comments
 (0)