Dify + Answer Socrates
Add Answer Socrates to Dify so your agents and workflows can pull real Google data automatically: hundreds of real searches for any keyword, 12 months of Google Trends and the searches rising right now. Build a weekly content-idea workflow and the agent groups the lot into a content plan.
Last updated: October 2026
Add Answer Socrates to Dify as an MCP server over HTTP. A URL, an identifier and an API key header, then the tools work in agents and workflows.
Create an API key on your Answer Socrates Account page. It is shown once, so copy it somewhere safe.
In Dify, open Tools, choose MCP and add an MCP server (HTTP).
Enter this server URL, a name such as Answer Socrates and a server identifier such as answersocrates:
https://answersocrates.com/api/mcpIn the advanced options, add a custom header named Authorization with the value Bearer followed by your key, then save. Dify imports the Answer Socrates tools.
Add the tools to an Agent app, or to an Agent node in a workflow, and ask: Use Answer Socrates to pull the keywords for meal prep.
Do not change the server identifier once apps use it: Dify links tools by that ID, and changing it breaks them. You can also skip the header and let Dify sign in with OAuth instead.
Ask a Dify agent for keywords on its own and the model guesses from what it learned in training. With Answer Socrates connected it pulls what people actually type into Google: hundreds of real search phrases per keyword, sorted into four groups.
How, what, why, can: the questions people ask about your topic, ready for FAQs and blog posts.
For, with, without, near: the qualifiers that show what people actually want.
Vs, or, like, and: the head-to-head searches that sit right before a buying decision.
The full a to z list of Google suggestions for your keyword.
What a keyword pull returns, from a real Answer Socrates session:
get_keywordssave_to_project
1,187 keywords for creatine gummies: 160 Questions (“are creatine gummies as effective as powder” asked five different ways: pure format skepticism), 166 Comparisons, 81 Prepositions, 30 time-based and 750 autocomplete phrases.
Saved to Supplements. Your team can see the full list in the app now. Want them as a CSV too? That's free.
Planning videos? Ask for the YouTube version and Dify pulls what people type into YouTube's own search box, sorted into the same four groups. YouTube searches lean towards tutorials, reviews and how-tos, so the list is different from Google's.
get_youtube_keywords
Here are the YouTube searches for meal prep, grouped into Questions, Prepositions, Comparisons and Autocomplete, with the how-to questions up top, ready for the next node.
Two more pulls, one request each. Ask for the TikTok version for short-form video ideas, or the shopping version for what people search on Google Shopping, Amazon and eBay. Both come back in the same four groups as Google, so Dify presents them the same way.
get_tiktok_keywords
Here are 584 TikTok searches for matcha, grouped into Questions, Prepositions, Comparisons and Autocomplete, with the how-tos up top. Want the YouTube version too?
get_shopping_keywords
From the UK sites: 703 Google Shopping, 186 Amazon and 138 eBay searches for matcha, each grouped the same way, with nothing repeated between them.
Give the agent a market and it maps it: what's climbing, what's seasonal and what's fading, from 12 months of Google Trends data in any country. Rising searches adds the related searches growing fastest right now.
Weekly Google Trends interest for any keyword across the last 12 months, in any country.
See when a keyword peaks and when it dips, so your content is live before the rush.
Run the same keyword in the UK, the US or any other country and chart them side by side.
Compare 10 or more keywords at once to see which are climbing and which are fading.
The related searches growing fastest right now, including brand-new Breakouts.
Ask the Dify agent to table it or return it in the shape the next node needs. Reworking data it already pulled costs nothing.
And much more. Ask in plain English and Dify picks the right tools, like this comparison of one keyword in two countries:
get_rising_topicsget_trends ×12
Over the last 12 months, the big movers are clear whey +190%, creatine gummies +94% (a real format shift, not hype), electrolytes +63% and magnesium glycinate +62%. Classic whey is resurging (+64%) while ashwagandha is the only decliner (−5%). That trend has peaked.
In the rising searches, Nutricost whey is up +1,850% and two brands hit Breakout. Almost everything peaks in April, so publish by March to catch the crest. Want me to pull the full keyword set for creatine gummies? (1 request)
Use the list the agent just pulled, or pass in one from an earlier node. Answer Socrates groups it into topics and labels every keyword with search intent and funnel stage, so you know what to write first. Clustering is paid in topic cluster credits, 1 per keyword, not requests.
cluster_keywords
931 keywords into 18 topics. The biggest is what keyword research is at 206 keywords, almost all top-of-funnel. The money is elsewhere: free keyword research tools (144) and paid tools and pricing (72) are both commercial and mid-funnel.
Only 13% didn't fit a topic. Want me to list any cluster in full, or export the lot as a CSV?
Dify is great at building AI apps, agents and workflows. What they lack is live search data, and that is the part Answer Socrates adds.
Dify alone
Task
With Answer Socrates
Task
Anything you would ask an SEO on your team. Put the instruction in the agent or workflow, and pass the results to the next node.
“Use Answer Socrates to pull the keywords for meal prep and return the questions first.”
“Find what's rising in meal prep this week, pull keywords for the top three topics and cluster them into five post ideas.”
“Compare interest in meal prep containers, high protein meal prep and vegan meal prep over the last 12 months. Which one is growing?”
“Take the page titles from the previous node and pull keywords for the topic each one covers.”
“Group these meal prep keywords by topic and flag the ones with commercial intent.”
“Cluster the questions and save the keywords to our meal prep project in Answer Socrates.”
That is a different job, on the same account. This page is about using Dify to do your SEO. To find out whether AI assistants recommend your brand, the LLM Brand Tracker runs your prompts across ChatGPT, Claude, Perplexity, Gemini and more, and shows who gets mentioned.
Connecting is free. The data comes from your Answer Socrates plan, where every plan includes 3 requests a month to try it and Socrates Pro includes the full allowances. Your plan has two separate allowances:
1 request per data call: rising topics, Google Trends or a full keyword pull. Checking your usage, saving to projects and exports are free.
1 credit per keyword you cluster, 10 to 1,000 keywords per call. These are the same topic cluster credits as the clustering tool in the app, and clustering never spends requests.
| Plan | Requests | Topic cluster credits |
|---|---|---|
| Free | 3 /mo | ✕ |
| Lite | 3 /mo | ✕ |
| Seneca | 500 /mo | 12,000 /mo |
| Aurelius | 2,500 /mo | 40,000 /mo |
| Senate | 25,000 /mo | 100,000 /mo |
Free includes 3 requests a month to try it, renewed on the 1st; keyword clustering through MCP is on Socrates Pro and above. Allowances reset every month, on yearly billing too. Team plans share one pool across all seats. Need more without a plan? Top up 100 requests for $20 on your Account page; bought requests never expire.
Same account, same tools. Answer Socrates works in any assistant that supports MCP.
A Dify agent can follow instructions and call tools, but on its own it has no live search data, so its keyword ideas are educated guesses. Add Answer Socrates and it can pull real Google searches, Google Trends and rising searches, then cluster them into a content plan inside your workflow.
Yes, once it has real data. With Answer Socrates connected, ask for keywords on any topic and Dify returns the Questions, Prepositions, Comparisons and autocomplete phrases people actually search on Google, often hundreds per keyword.
Create an API key on your Answer Socrates Account page. In Dify, open Tools, choose MCP and add a server with the URL https://answersocrates.com/api/mcp, a name and a server identifier. Add a custom header named Authorization with the value Bearer followed by your key, or let Dify sign in with OAuth, then save.
A Dify version with MCP tools, plus a model for your agent. On the Answer Socrates side, every plan includes 3 data calls a month to try it, and Socrates Pro includes 2,500 a month.
Data calls cost 1 request each: Free includes 3 a month to try it, Socrates Pro 2,500, and Enterprise is set for your team. Clustering is on Socrates Pro and above and uses topic cluster credits instead, 1 per keyword: 40,000 a month on Socrates Pro. Checking your usage, saving to projects and exports are free.
Yes. Clustering in Dify draws on the same topic cluster credits as the clustering tool in the app, 1 per keyword, from 10 up to 1,000 keywords per call. It never spends your requests.
Any. Results default to the US, so just tell Dify the market you want, for example “keywords for running shoes in Germany, in German”.
Yes. Tool results flow to the next node like any other output, so your workflow can format them, store them or send them on. Reworking data it already pulled costs nothing. You can also save the research to your Answer Socrates projects so your team sees it in the app.
That is a different job. To see whether ChatGPT, Claude and other AI assistants recommend your brand, use the LLM Brand Tracker.