Instagram DM message Automation using the Send API

Hi there I’m pretty new to Make.com. I’ve been looking to make an instagram automation that comments on a post after a user comments on it. I’ve got everything to work so far.
However after that I want to be able to send a DM to the user who has commented. I’m using a HTTP Make a Request to do this. However I’m unable to get it to work.

I’ve been using the Meta Send-API and the Make.com HTTP Documentation to help me with it. However I’m unsure how to go about it.

I tried using this thread however that doesnt seem to be helping me much.

It would be really helpful if you can refer the image below to see if I’m in the right direction.

You have put the parameters in the Headers, when it should all have gone into the Query String field.

Move them down first.

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

1 Like

Hi. Were you able to solve this?

Hello @HariPrasadh did you solve this? If so can you share it as a template so I can use too please :slight_smile:

Hey I’ve had an unfortunate emergency in my family so wasn’t able to try it. I’ll be trying it today. Did anyone here try to get it to work.

Hi Sam,
I tried out the solution you’ve suggested unfortunately it doesnt seem to be working.
I checked out the log the make a request operation is sucessful however the output exits with a status code 400.

This is how my make a request is setup.

Looks like you are missing the query strings in this format

recipient

{'id':'PSID'}

message

{'text':'hello,world'}

Please see the documentation that you linked for more information:

Screenshot_2024-05-28_190544

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

2 Likes

Hi Sam,
Thanks for the response.

I’ve added all of them in the format that’s mentioned in the API documentation. I’m still getting the status code 400 unfortunately.

This is how my Make a Request Operation looks.


This is how the output looks

Please do not paste screenshots of output bundles, as some properties are collapsed (plus symbols) and truncated (cut off at the right).

Please provide the input and output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-input-bundle.txt (12.3 KB)
module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

This will allow others to better assist you. Thanks!

1 Like

Hi Sam,
I’ve attached the Input and output bundles below like how you’ve mentioned. Have a look at it and let me know what you think.

Right now all my operations except the Make a Request seems to be working without any issues.

module-1-input-bundle.txt (1.5 KB)
module-1-output-bundle.txt (6.5 KB)

Your URL might be incorrect.

You are using the wrong version number

https://graph.facebook.com/19.0/...

correct should be

https://graph.facebook.com/v19.0/...
2 Likes

Thanks a lot Sam. The Operations are working as intended really appreciate the help.

2 Likes

Hi Hari. Would you be willing to share your entire scenario? I’d love to build this for myself as well!

2 Likes

No problem, glad I could help!

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

4. Do join the unofficial Make Discord server for live chat and video assistance

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

2 Likes