A customer writes to your Turkish WhatsApp line on Tuesday evening: “Merhaba, siparişimle ilgili bir sorum var” (“Hi, I have a question about my order”). The agent asks for the order number, opens the store admin, searches for the customer, and only then sees that this is a loyal customer who ordered three times last month. Five minutes and two messages have gone by.
According to Türkiye’s Ministry of Trade, e-commerce grew 52.2% to TRY 4.567 trillion in 2025, about USD 115.5 billion, and 634,000 businesses sold online. During Kasım indirimleri and Efsane Cuma, a large share of the WhatsApp messages these businesses receive are order questions. An agent who already knows the customer saves a few messages in every one of them.
MonoChat 3.8.43 brings a small change with a large effect: the Set Customer Profile Field node can fill a field from a variable. The order notification your store already sends, or the answers of a lead ad, can be saved on the customer’s profile without anyone typing them. This post walks through two setups.
What changed
Before, Set Customer Profile Field wrote a fixed value, such as “Customer type = Reseller”. Since 3.8.43, choose From a Variable for a field and fill it from:
- a flow variable, for example
{{flow.order.total}}saved from a webhook or an HTTP request; - a WhatsApp Flow form answer, for example
{{message.payload.formData.email}}; - any other MonoChat
{{key}}.
MonoChat converts the value to the field’s type:
| Field type | Accepted value |
|---|---|
| Number | A number |
| Date | An ISO 8601 date (2026-11-05 or 2026-11-05T14:30:00Z) or a Unix timestamp in seconds or milliseconds |
| Phone | A valid phone number |
| A valid address | |
| List | One of the options; for an advanced list, an option’s ID or one of its names |
| Language | One of your active languages |
When a variable is empty or its value does not fit, the other fields are still saved, the node takes its On Fail output and the run log names the field. Every failed action node now records its error in the run log.
Which fields to keep
Keep few and useful ones. For a store selling in Türkiye:
| Profile field | Type | Why |
|---|---|---|
| Last order number | Text | The agent does not have to ask |
| Last order amount | Number | Priority for big orders |
| Last order date | Date | “Is this about last week’s order?” |
| Payment method | List (Card, Bank transfer, Cash on delivery) | Cash-on-delivery orders go to a confirmation flow |
Why the payment method field matters in Türkiye
If you come from a market where nearly everyone pays by card, the payment mix here will surprise you. The Ministry of Trade reports that about two thirds of Turkish e-commerce payments are made by card, followed by bank transfer (havale/EFT) and then cash on delivery (kapıda ödeme); 64% of card payments go through 3D Secure. Each method brings its own question:
- card buyers ask about shipping and returns;
- bank-transfer buyers ask whether you have received the money, so the agent can ask for the receipt (dekont) straight away;
- cash-on-delivery orders need confirming before they ship, which an If condition on the field can start.
Keep the field as a list whose options match the values your store sends. A value that is not on the list sends the node to On Fail, which is also how you notice a new payment method.
Create them under the CRM’s Profile Fields. Store only what you will use; customer data is your responsibility.
Setup 1: the store’s order notification
1. Start the flow with Webhook Received
- Under Settings › Automation › Flows, create a new flow.
- Add the Webhook Received event node, name it and click Create. The node gets its own Webhook URL and secret.
- Choose your WhatsApp line as the Channel. In Identity Path, enter where the customer’s phone number is in the request (the default is
request.body.phone). - Turn on Require Secret where your store can send the secret in a header or as a signature.
2. See what the store sends
In your store’s admin, add a webhook for the order-created event to the Webhook URL with /test at the end, and place a test order. While the node’s settings are open, the request appears under Captured Request with its body, query and headers; it does not start the flow. You see the real field names instead of guessing them. Remove /test from the address when you are done.
The body depends on your platform. It might look like this:
{
"id": 48213,
"created_at": "2026-11-02T18:42:00+03:00",
"total_price": "1249.90",
"customer": { "phone": "+905321234567", "first_name": "Ayşe" }
}
In this example, the Identity Path is request.body.customer.phone.
3. Save the values as a flow variable
In the same node, turn on Save Flow Variable, set the Flow Variable Name to order and add rows under Flow Variable Mapping:
| Key | Path | Type |
|---|---|---|
id | request.body.id | Number |
total | request.body.total_price | Text |
date | request.body.created_at | Text |
Use the paths you saw in your own Captured Request. A value that does not have the chosen type makes the node fail, so keep amounts that arrive in quotes as text; MonoChat converts them when it writes them to a number field.
4. Fill the profile from the variables
Add a Set Customer Profile Field node and choose From a Variable for each field:
- Last order number:
{{flow.order.id}} - Last order amount:
{{flow.order.total}} - Last order date:
{{flow.order.date}}
Do not leave On Fail empty: a Set Customer Tag node with profile-incomplete lets the team review those customers each week.
5. Tag big orders
After the profile is written, add an If condition and choose Profile Fields from the Customer group: continue when “Last order amount” is greater than 5000. The amount now sits in a number field, so the comparison works. On the true branch, Set Customer Tag adds vip.
A separate flow that starts with Customer Tag Added on vip can send those customers’ chats to a senior agent with Assign Session. See our tag-triggered flows post.
Setup 2: lead-ad answers
If you run Facebook or Instagram lead ads in Türkiye, the answer to a question such as “Which product are you interested in?” can go to the profile too.
- Start the flow with Lead Received and choose the form and your WhatsApp channel. The form’s name, phone and e-mail answers are written to the profile anyway.
- Turn on Save Flow Variable, name it
lead, and maplead.answers.<question>to a key such asproduct. Latest Lead shows the newest lead of the selected forms, so you can see the paths. - In Set Customer Profile Field, fill “Product of interest” From a Variable with
{{flow.lead.product}}. If the field is a list, make sure the answer matches one of its options. - Then send the first message with an approved template; the agent sees on the profile which product the person asked about.
How the chat changes
With the profile filled, the same Tuesday conversation goes like this:
Customer: Merhaba, siparişimle ilgili bir sorum var.
Agent: Merhaba Ayşe Hanım, dün akşam verdiğiniz 48213 numaralı sipariş için mi yazdınız? Bugün kargoya verildi.
(“Hello Ms Ayşe, is this about order 48213 you placed last night? It shipped today.”)
The agent reads this from the customer profile next to the chat. An AI assistant can reach the same fields through {{customer.profile...}} values in its prompt, so it can answer “where is my order?” without asking for the number.
Shorten “where is my order?”
It is the most common e-commerce question in any market. In Türkiye, the Ministry of Trade puts the average parcel delivery at 42.2 hours (down from 46 two years earlier), with 53% of orders delivered within 24 to 48 hours. Most customers write a day or two after ordering, while they wait.
With Last order date on the profile, the agent can answer in the first message (in Turkish, as your customers expect): “Mehmet Bey, siparişiniz pazartesi 18:42’de verilmiş; takip numaranızı hemen paylaşıyorum.” Because the field is a date, an If condition can also route a customer whose last order is more than three days old to the team that handles delivery problems. If your store sends the tracking number, write it to a text field the same way.
KVKK: what belongs on the profile
Türkiye’s data protection law, Law No. 6698 (KVKK), requires personal data to be “relevant, limited and proportionate” to the purpose it is processed for, and kept only as long as that purpose needs (article 4). Article 5 lists, among the cases where no explicit consent is needed, data that is directly related to forming or performing a contract with the person. An order number, amount and date used to answer the customer’s question about their own order fit that purpose; keep them to it.
In practice, leave address, invoice details and item lists in the flow variable unless an agent needs them, name each field after its purpose, and mention your WhatsApp support channel in your privacy notice (aydınlatma metni). This is not legal advice; ask a Turkish lawyer about your own case.
Things to watch
- Keep the Webhook URL secret. Anyone who has it can start the flow; turn on Require Secret.
- Route cash on delivery. Use the payment method field to send cash-on-delivery orders to a confirmation flow (our cash-on-delivery post).
- Profile data is not consent. Marketing messages in Türkiye need the customer’s consent; see our İYS checklist. This post is not legal advice.
Checklist
- Profile fields of the right types: order number, amount, date, payment method.
- Webhook Received with Require Secret on, and the Identity Path set to your store’s phone field.
- Field names checked in Captured Request, and
/testremoved. - Save Flow Variable and Set Customer Profile Field (From a Variable) connected.
- On Fail leads to a tag or an agent.
- A
viptag for big orders, with chats assigned to a senior agent.
Pricing
Basic is free and Growth is $120 a month, VAT included. See our pricing page.