How do I connect Plain?
Connect Plain as a pre-built channel, so a customer agent resolves threads from its own seat, just like a team member.
To connect Parahelp to Plain, you create a machine user in Plain that only the customer agent uses. From that seat it sends messages to your customers and takes actions, from updating and transferring threads to issuing refunds or troubleshooting bugs with its scoped tools. Parahelp takes you through each step in a chat, and this guide shows what steps you take in Plain.
Before you start
Each Plain workspace connects to one customer agent. To run more customer agents on it, connect the others as custom channels. Read more in Customer agents.
You’ll need:
Admin access in Plain, including Settings → Machine Users and Settings → Request signing.
An Admin in Parahelp to enter the connection details.
1. Create the customer agent’s machine user in Plain
Open Settings → Machine Users and click Add Machine User.
Set Name to a clear internal name, and Public name to the customer agent’s name, for example Sam. Customers see the public name on every reply.
Only the customer agent should use this machine user. The customer agent handles every thread assigned to it.
2. Create an API key for Parahelp
On the machine user’s page, click Add API Key.
In the permissions header, open the Filter dropdown and choose All.
Select every permission and create the key.
Copy the key. Plain only shows it once.
Choose All permissions, not Recommended. Plain preselects the Recommended permissions, and the switch to All sits inside the Filter dropdown, which is easy to miss. A key with only the recommended permissions leads to permission errors, either when you connect or later when the customer agent takes an action.
Create the key on the machine user you made for the customer agent: the customer agent replies as the machine user the key belongs to. Plain’s guide: API authentication.
3. Copy your request signing secret and connect
Open Settings → Request signing and copy the HMAC secret. If there isn’t one yet, generate it first. Plain’s guide: Request signing.
In a chat, tell Parahelp you want to connect Plain. It sends a secure connection form to an Admin’s Inbox.
Enter the API key and the request signing secret, then submit the form. Keep them out of chat messages, tickets and email: they only go in this form.
Parahelp checks the key, finds the machine user it belongs to, and sets up the webhook in your Plain workspace for you. There’s no webhook to add and no ID to look up. Parahelp confirms that both the machine user and the webhook are connected.
4. Assign threads to the customer agent
The customer agent only works on threads assigned to its machine user. Assigning a thread to it hands it over, and assigning it to someone else, or clearing the assignee, takes it back. A thread that waits in a view with no assignee never reaches it. So the last step is a workflow rule in Plain that assigns the right threads to the customer agent.
To set up the workflow rule in Plain:
Open Workflows and create a rule, for example “Assign to Sam”.
Set it to run when a new thread is created.
Add conditions for the threads the customer agent should get first, for example a tier, label, channel or support address.
Add the action Assign to user and pick the customer agent’s machine user.
Save and turn the rule on.
Everything else keeps your current assignment. A few things to check:
Machine user missing from the list? If it doesn’t show up under Assign to user, you can assign threads to it by hand in the meantime, and ask Plain to add it.
Start small: assign a few test threads first, then one scope of real threads, such as one tier, label, channel or support address.
Step in any time: to take a thread over, assign it to yourself in Plain.
Troubleshooting
Symptom | What to check |
|---|---|
Nothing reaches Parahelp | Ask Parahelp whether the machine user and the webhook are both connected, and check that Parahelp’s webhook target is still enabled in Plain’s settings. |
Permission or forbidden errors | The API key was probably created with the Recommended permissions. Create a new key with All permissions (step 2) and connect again. |
A thread never reached the customer agent | It isn’t assigned to the customer agent’s machine user. No rule assigned it, so it has no assignee, or a rule or a teammate gave it to someone else. |
Assigned to the customer agent, but no reply | Check that the configuration has been released (see Releases). If its messages or scoped tools need approval, check your Inbox for a request waiting for an Admin. |
The customer agent answered something outside its scope | A rule or a teammate assigned it to the machine user. Narrow what assigned it, and assign the thread to a teammate. |